-
Notifications
You must be signed in to change notification settings - Fork 18
/
tox.ini
52 lines (44 loc) · 1.17 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
[tox]
envlist = py38,static,docs
[testenv]
deps=-rtest-requirements.txt
commands=pytest -v {posargs}
whitelist_externals=sh
[testenv:cov]
usedevelop=true
commands=
pytest --cov-report=term --cov=src/pubtools --cov-fail-under=100 {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.10
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'
[isort]
profile = black