This commit is contained in:
Rodney, Tiara 2025-05-17 20:22:48 +02:00 committed by Tiara Rodney
commit 4cbe50253a
No known key found for this signature in database
GPG key ID: 5F43FAB4FBE5B5EB
36 changed files with 4073 additions and 0 deletions

59
tox.ini Normal file
View file

@ -0,0 +1,59 @@
[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