-
Notifications
You must be signed in to change notification settings - Fork 25
/
tox.ini
62 lines (50 loc) · 1.24 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
52
53
54
55
56
57
58
59
60
61
62
[tox]
envlist = py39,static,docs
[testenv]
deps=
-rtest-requirements.txt
commands=
pytest -vv {posargs:./}
allowlist_externals=sh
[testenv:static]
commands=
sh -c 'pylint pushsource; test $(( $? & (1|2|4|32) )) = 0'
[testenv:pidiff]
skip_install=true
commands=pidiff pushsource .
[testenv:cov]
usedevelop=true
commands=
pytest --cov-report=html --cov-report=xml --cov=src --cov-fail-under=100 {posargs}
[testenv:py38]
deps=
-rtest-requirements.in
[testenv:py37]
deps=
-rtest-requirements.in
[testenv:py36]
deps=
-rtest-requirements.in
[testenv:docs]
use_develop=true
commands=
sphinx-build -M html docs docs/_build
[pytest]
testpaths = tests
[testenv:pip-compile]
# Recompile all requirements .txt files using pip-compile.
# Don't edit me - I'm deployed from a template.
deps = pip-tools
basepython = python3.9
skip_install = true
skipsdist = true
commands =
pip-compile -U --generate-hashes requirements.in
pip-compile -U --generate-hashes requirements.in test-requirements.in -o test-requirements.txt
# end pip-compile
[testenv:bandit-exitzero]
deps = -rtest-requirements.txt
commands = bandit -r . -l --exclude './.tox' --exit-zero
[testenv:bandit]
deps = -rtest-requirements.txt
commands = bandit -r . -ll --exclude './.tox'