diff --git a/tox.ini b/tox.ini index 61abc0aa..88532ad0 100644 --- a/tox.ini +++ b/tox.ini @@ -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]