-
Notifications
You must be signed in to change notification settings - Fork 24
/
Copy pathtox.ini
65 lines (55 loc) · 1.29 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
63
64
65
[tox]
envlist = py36,static,pidiff,docs
[testenv]
deps=-rtest-requirements.txt
commands=pytest -v {posargs}
allowlist_externals=sh
[testenv:static]
deps=
-rtest-requirements.txt
black==22.3.0
pylint==2.7.2
commands=
black --check .
sh -c 'pylint src/pubtools/pulplib; test $(( $? & (1|2|4|32) )) = 0'
[testenv:pidiff]
deps=pidiff
skip_install=true
commands=pidiff pubtools-pulplib . pubtools.pulplib {posargs}
[testenv:cov]
deps=
-rtest-requirements.txt
pytest-cov
pytest-timeout
usedevelop=true
commands=
pytest -svv --timeout 60 --cov-report=html --cov-report=xml --cov=pubtools.pulplib --cov-fail-under=100 {posargs}
[testenv:lock]
deps=
-rtest-requirements.txt
pytest-cov
pytest-timeout
usedevelop=true
commands=
pytest -svv ./tests/repository/test_repo_lock.py
[testenv:docs]
deps=
sphinx
alabaster
use_develop=true
commands=
sphinx-build -M html docs docs/_build -W
[testenv:py3-bandit-exitzero]
deps=
-rtest-requirements.txt
commands=
# Skip B101 low severity assert warnings in the tests directory
bandit -r ./tests --severity-level low --exit-zero --skip B101
bandit -r . -l --exclude './.tox,./tests' --exit-zero
[testenv:py3-bandit]
deps=
-rtest-requirements.txt
commands=
bandit -r . -ll --exclude './.tox' --confidence-level medium
[pytest]
testpaths = tests