Streamline tox.ini

This commit is contained in:
Hynek Schlawack 2023-02-03 09:36:01 +01:00
parent 0ec44257f7
commit 2252f5bc41
No known key found for this signature in database
GPG Key ID: AE2536227F69F181
1 changed files with 4 additions and 5 deletions

View File

@ -14,7 +14,7 @@ commands =
[testenv]
extras = tests
commands = python -m pytest {posargs:-n auto}
commands = pytest {posargs:-n auto}
passenv = SETUPTOOLS_SCM_PRETEND_VERSION
@ -22,7 +22,7 @@ passenv = SETUPTOOLS_SCM_PRETEND_VERSION
extras = cov
# Python 3.6+ has a number of compile-time warnings on invalid string escapes.
# PYTHONWARNINGS=d and --no-compile below make them visible during the Tox run.
install_command = python -m pip install --no-compile {opts} {packages}
install_command = python -Im pip install --no-compile {opts} {packages}
setenv =
HATCH_BUILD_HOOK_ENABLE_AUTORUN=1
COVERAGE_PROCESS_START={toxinidir}/pyproject.toml
@ -32,7 +32,7 @@ commands = coverage run -m pytest {posargs:-n auto}
[testenv:coverage-report]
basepython = python3.11
depends = py37,py310,py311
depends = py3{7,10,11}
skip_install = true
deps = coverage[toml]>=5.3
commands =
@ -43,8 +43,7 @@ commands =
[testenv:pre-commit]
skip_install = true
deps = pre-commit
passenv = HOMEPATH # needed on Windows
commands = pre-commit run --all-files --show-diff-on-failure
commands = pre-commit run --all-files
[testenv:changelog]