sphinxcontrib/tox.ini
Rodney, Tiara 4cbe50253a
init
2025-05-19 01:38:00 +02:00

59 lines
1.1 KiB
INI

[tox]
requires =
tox>=4.19
env_list =
py3{8-12}-{unit}
py3{8-12}-sphinx{5-8}-{integration}
lint
format
audit
[testenv]
deps =
.
[testenv:lint]
description = run type check on code base
labels = static
deps =
mypy
commands =
mypy src
mypy tests
[testenv:audit]
description = run type check on code base
labels = static
deps =
pip-audit
commands =
pip-audit .
[testenv:format]
description = run type check on code base
labels = static
deps =
autopep8
commands =
autopep8 --recursive --diff --exit-code src/
autopep8 --recursive --diff --exit-code tests/
[testenv:py3{8-13}-unit]
description = run type check on code base
labels = unit
deps =
{[testenv]deps}
commands =
python3 -m unittest discover tests/unit
[testenv:py3{8-13}-sphinx{5-8}-integration]
description = run type check on code base
labels = integration
deps =
{[testenv]deps}
sphinx5: sphinx>=5.0,<=6.0
sphinx6: sphinx>=6.0,<=7.0
sphinx7: sphinx>=7.0,<=8.0
sphinx8: sphinx>=8.0,<=9.0
commands =
python3 -m unittest discover tests/integration