cookiecutter
/
tox.ini
51 строка · 1.3 Кб
1[tox]
2envlist =
3lint
4py{312, 311, 310, 39, 38, 37}
5safety
6docs
7
8skip_missing_interpreters = True
9isolated_build = True
10
11
12[testenv:lint]
13description = Run pre-commit hooks
14deps = pre-commit
15commands = pre-commit run --all --all-files
16
17
18[testenv]
19description = Run the test suite ({basepython})
20package = wheel
21wheel_build_env = build_wheel
22depends =
23# The test suite currently cannot run in parallel due to I/O conflicts.
24# To allow tox to run other test environments (like 'docs') in parallel,
25# sequential dependencies are listed here for the test suite.
26py37: py38
27py38: py39
28py39: py310
29py310: py311
30py311: py312
31py312: lint
32deps = -rtest_requirements.txt
33commands = pytest --color=yes --cov-report=html --cov-report=xml --cov-branch --cov-fail-under=100 {posargs}
34
35
36[testenv:safety]
37description = Check with safety
38deps = safety==2.3.5
39commands = safety --disable-telemetry check --full-report
40
41
42[testenv:docs]
43description = Build the documentation
44deps = -rdocs/requirements.txt
45commands = sphinx-build -Wab html docs/ docs/_build/html
46
47
48[testenv:servedocs]
49description = Host the docs locally and rebuild on changes
50deps = -rdocs/requirements.txt
51commands = sphinx-autobuild -Wa docs/ docs/_build/html --open-browser --port 9812 --watch *.md --watch *.rst --watch *.py --watch cookiecutter
52