dirty
This commit is contained in:
parent
95e6ee35ed
commit
9de1a7db79
20 changed files with 180 additions and 110 deletions
120
tox.ini
120
tox.ini
|
|
@ -1,73 +1,67 @@
|
|||
[tox]
|
||||
skipsdist = true
|
||||
maxversion = 3.11.0
|
||||
isolated_build = True
|
||||
env_list =
|
||||
static-type-check
|
||||
requires =
|
||||
tox>=4.19
|
||||
env_list =
|
||||
py3{8-12}-{unit}
|
||||
py3{8-12}-sphinx{5-8}-{integration}
|
||||
lint
|
||||
test
|
||||
|
||||
format
|
||||
|
||||
[testenv]
|
||||
basepython = python3
|
||||
deps =
|
||||
{toxinidir}
|
||||
setenv = PYTHONPATH = {toxinidir}/src
|
||||
|
||||
.
|
||||
|
||||
[testenv:lint]
|
||||
description = lint with pylint
|
||||
deps =
|
||||
pylint >= 2.12.2, < 3
|
||||
commands =
|
||||
python3 -m pylint {toxinidir}/src {posargs}
|
||||
|
||||
[testenv:static-type-check]
|
||||
description = static type checking
|
||||
deps =
|
||||
mypy >=1.5.1,<2
|
||||
commands =
|
||||
python3 -m mypy {toxinidir}/src {posargs}
|
||||
|
||||
[testenv:test]
|
||||
description = test suite with pytest
|
||||
deps =
|
||||
pytest
|
||||
pytest-cov
|
||||
commands =
|
||||
pytest \
|
||||
--junitxml=test-reports/full.xml \
|
||||
--cov-report term \
|
||||
--cov-report html:test-reports/coverage \
|
||||
--cov=wsgirouter \
|
||||
{posargs}
|
||||
|
||||
[testenv:build-demo]
|
||||
description = test suite with pytest
|
||||
deps =
|
||||
sphinx
|
||||
{toxinidir}
|
||||
commands =
|
||||
sphinx-build -b html -Dhtml4_writer=0 \
|
||||
-d {envtmpdir}/doctrees demo \
|
||||
build/demo
|
||||
|
||||
[testenv:autobuild-demo]
|
||||
description = test suite with pytest
|
||||
deps =
|
||||
sphinx
|
||||
sphinx-autobuild
|
||||
{toxinidir}
|
||||
commands =
|
||||
sphinx-autobuild -b html -Dhtml4_writer=0 \
|
||||
-d {envtmpdir}/doctrees demo \
|
||||
--watch src/tiararodneycom_theme \
|
||||
build/demo
|
||||
|
||||
[testenv:build-sdist]
|
||||
description = build and package
|
||||
description = run type check on code base
|
||||
labels = static
|
||||
deps =
|
||||
build >= 0.5.1, < 1
|
||||
mypy
|
||||
commands =
|
||||
python3 -m build --sdist {posargs}
|
||||
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}-unit]
|
||||
description = run type check on code base
|
||||
labels = unit
|
||||
deps =
|
||||
{[testenv]deps}
|
||||
pytest
|
||||
commands =
|
||||
pytest tests/unit --junitxml=test-reports/{env_name}.xml
|
||||
|
||||
[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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue