forked from release-engineering/pubtools
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
62 lines (53 loc) · 1.34 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 = py27,py38,static,docs
[testenv]
deps=-rtest-requirements.txt
commands=pytest -v {posargs}
whitelist_externals=sh
[testenv:py27]
# .txt file pins requirements to py3 versions,
# does not work for py2
deps=
-rtest-requirements.in
-clegacy.constraints
[testenv:static]
deps=
-rrequirements-dev.txt
commands=
black --check .
[testenv:cov]
usedevelop=true
commands=
pytest --cov-report=xml --cov=pubtools {posargs}
[testenv:docs]
deps=
-rrequirements-docs.txt
use_develop=true
commands=
python docs/mkhooks
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-bandit.in
pip-compile -U --generate-hashes requirements-dev.in
pip-compile -U --generate-hashes requirements-docs.in
pip-compile -U --generate-hashes requirements-dev.in requirements-docs.in test-requirements.in -o test-requirements.txt
# end pip-compile
[testenv:py3-bandit-exitzero]
deps=
-rrequirements-bandit.txt
commands=
bandit -r . -l --exclude './.tox' --exit-zero
[testenv:py3-bandit]
deps=
-rrequirements-bandit.txt
commands=
bandit -r . -ll --exclude './.tox'