47 lines
1014 B
INI
47 lines
1014 B
INI
[tox]
|
|
minversion = 3.23.0
|
|
requires =
|
|
virtualenv >= 20.4.3
|
|
tox-wheel >= 0.6.0
|
|
isolated_build = true
|
|
envlist =
|
|
flake8,
|
|
tests,
|
|
apidocs
|
|
|
|
|
|
[testenv]
|
|
wheel = true
|
|
wheel_build_env = build
|
|
deps =
|
|
tests: coverage
|
|
apidocs: pydoctor
|
|
lint: pre-commit
|
|
extras =
|
|
mypy: mypy
|
|
tests: scripts
|
|
|
|
commands =
|
|
python -V
|
|
|
|
lint: pre-commit run --all-files --show-diff-on-failure
|
|
|
|
apidocs: pydoctor -q --project-name incremental src/incremental
|
|
|
|
tests: coverage --version
|
|
tests: {envbindir}/trial --version
|
|
tests: coverage erase
|
|
tests: coverage run -p {envbindir}/trial incremental
|
|
tests: coverage run -p examplesetup.py install
|
|
tests: coverage run -p {envbindir}/trial tests/test_exampleproj.py
|
|
tests: coverage combine
|
|
tests: coverage report
|
|
tests: coverage html
|
|
tests: coverage xml
|
|
mypy: mypy src
|
|
|
|
|
|
[testenv:build]
|
|
# empty environment to build universal wheel once per tox invocation
|
|
# https://github.com/ionelmc/tox-wheel#build-configuration
|