-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathtox.ini
51 lines (43 loc) · 1.03 KB
/
tox.ini
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
[tox]
envlist = clean, py38, py39, report, check
[testenv]
depends = clean
setenv =
PYTHONPATH = {toxinidir}/tests
usedevelop = true
deps =
-r{toxinidir}/requirements/test.txt
commands =
pytest {posargs:--random-order} tests
[testenv:clean]
skip_install = true
deps = coverage
commands = coverage erase
depends =
[testenv:report]
skip_install = true
deps = coverage
commands = coverage report -m
depends = py38,py39
parallel_show_output = true
[testenv:check]
skip_install = true
deps = -r{toxinidir}/requirements/check.txt
commands =
flake8 {toxinidir}
black --check {toxinidir}
isort --check --diff {toxinidir}
pip-compile-multi verify
check-manifest -u -v {toxinidir}
[testenv:docs]
deps = -r{toxinidir}/requirements/docs.txt
whitelist_externals = make
commands = make -C docs {posargs:html}
[coverage:run]
branch = true
[flake8]
max-line-length = 200
ignore = E203,W503
docstring-convention = google
[pytest]
addopts = --cov-config=tox.ini --cov-append --cov=winsign --cov-report=term-missing --durations=10 -v