57 lines
1.1 KiB
INI
Executable file
57 lines
1.1 KiB
INI
Executable file
[tox]
|
|
requires =
|
|
tox>=4.19
|
|
env_list =
|
|
integration-py3{9-13}-sphinx{5-8}
|
|
lint
|
|
format
|
|
|
|
[testenv]
|
|
deps =
|
|
.
|
|
|
|
[testenv:lint]
|
|
description = run type check on code base
|
|
labels = static
|
|
deps =
|
|
mypy
|
|
commands =
|
|
python3 -m mypy src tests --junit-xml test-reports/{env_name}.xml
|
|
|
|
[testenv:audit]
|
|
description = run type check on code base
|
|
labels = audit
|
|
deps =
|
|
pip-audit
|
|
commands =
|
|
pip-audit .
|
|
|
|
[testenv:format]
|
|
description = run type check on code base
|
|
labels = static
|
|
deps =
|
|
black
|
|
commands =
|
|
black --check src tests
|
|
|
|
[testenv:py3{9-13}-sphinx{5-7}-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
|
|
pytest
|
|
commands =
|
|
pytest tests/integration --junitxml=test-reports/{env_name}.xml
|
|
|
|
[testenv:py3{10-13}-sphinx8-integration]
|
|
description = run type check on code base
|
|
labels = integration
|
|
deps =
|
|
{[testenv]deps}
|
|
sphinx8: sphinx>=8.0,<=9.0
|
|
pytest
|
|
commands =
|
|
pytest tests/integration --junitxml=test-reports/{env_name}.xml
|