-
Notifications
You must be signed in to change notification settings - Fork 3
/
tox.ini
27 lines (24 loc) · 863 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
[tox]
envlist = py{38,39,310}
isolated_build = true
[testenv]
deps = -r requirements/test.txt
commands = pytest
[testenv:docs]
description = invoke sphinx-build to build the HTML docs
basepython = python3.8
deps = {posargs:}
-r requirements/docs.txt
allowlist_externals = find
commands = python -m sphinx -j2 -v -b html -d {toxworkdir}/docs_doctrees docs html
python -m sphinx -j2 -v -b doctest -d {toxworkdir}/docs_doctrees docs html
python -m sphinx -j2 -v -b linkcheck -d {toxworkdir}/docs_doctrees docs html
find html -type f -name "*.ipynb" -not -path "html/_sources/*" -delete
[testenv:static]
description = Code formatting and static analysis
basepython = python3.8
skip_install = true
deps = -r requirements/static.txt
commands = black .
flake8 .
bandit -c pyproject.toml -r src tools docs