2022-06-29 15:52:00 +10:00
|
|
|
[tox]
|
|
|
|
isolated_build = True
|
2022-08-08 09:50:52 +10:00
|
|
|
envlist = py39,mypy,docs
|
2022-06-29 15:52:00 +10:00
|
|
|
envdir = {toxworkdir}/poetry
|
|
|
|
|
|
|
|
[testenv]
|
|
|
|
deps = poetry
|
|
|
|
skip_install = True
|
|
|
|
commands =
|
|
|
|
poetry install -v
|
2022-07-07 13:20:43 +10:00
|
|
|
poetry run py.test -v --cov repo_autoindex --cov-report html {posargs}
|
2022-06-29 15:52:00 +10:00
|
|
|
|
|
|
|
[testenv:mypy]
|
|
|
|
commands =
|
|
|
|
poetry install -v
|
|
|
|
poetry run mypy --strict --disable-error-code no-untyped-def repo_autoindex
|
2022-08-08 09:50:52 +10:00
|
|
|
|
|
|
|
[testenv:docs]
|
|
|
|
commands =
|
|
|
|
poetry install -v
|
|
|
|
poetry run sphinx-build -M html docs docs/_build
|