-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathtox.ini
47 lines (39 loc) · 833 Bytes
/
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
[tox]
envlist = py36,py38,static,pidiff,docs,bandit
[testenv]
deps=-rtest-requirements.txt
commands=pytest -v {posargs}
whitelist_externals=sh
[testenv:static]
deps=
-rtest-requirements.txt
black
pylint==2.5.3
astroid==2.4.2
allowlist_externals=sh
commands=
black --check .
sh -c 'pylint pushcollector; test $(( $? & (1|2|4|32) )) = 0'
[testenv:pidiff]
deps=pidiff
skip_install=true
commands=pidiff pushcollector .
[testenv:cov]
deps=
-rtest-requirements.txt
pytest-cov
usedevelop=true
commands=
pytest --cov-report=html --cov-report=xml --cov=src --cov-fail-under 100 {posargs}
[testenv:docs]
deps=
sphinx
alabaster
use_develop=true
commands=
sphinx-build -M html docs docs/_build
[pytest]
testpaths = tests
[testenv:bandit]
deps = -rtest-requirements.txt
commands = bandit -r . -ll --exclude './.tox,./misc/ci'