Skip to content

Commit 2252f5b

Browse files
committed
Streamline tox.ini
1 parent 0ec4425 commit 2252f5b

1 file changed

Lines changed: 4 additions & 5 deletions

File tree

tox.ini

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,15 @@ commands =
1414

1515
[testenv]
1616
extras = tests
17-
commands = python -m pytest {posargs:-n auto}
17+
commands = pytest {posargs:-n auto}
1818
passenv = SETUPTOOLS_SCM_PRETEND_VERSION
1919

2020

2121
[testenv:py3{7,10,11}]
2222
extras = cov
2323
# Python 3.6+ has a number of compile-time warnings on invalid string escapes.
2424
# PYTHONWARNINGS=d and --no-compile below make them visible during the Tox run.
25-
install_command = python -m pip install --no-compile {opts} {packages}
25+
install_command = python -Im pip install --no-compile {opts} {packages}
2626
setenv =
2727
HATCH_BUILD_HOOK_ENABLE_AUTORUN=1
2828
COVERAGE_PROCESS_START={toxinidir}/pyproject.toml
@@ -32,7 +32,7 @@ commands = coverage run -m pytest {posargs:-n auto}
3232

3333
[testenv:coverage-report]
3434
basepython = python3.11
35-
depends = py37,py310,py311
35+
depends = py3{7,10,11}
3636
skip_install = true
3737
deps = coverage[toml]>=5.3
3838
commands =
@@ -43,8 +43,7 @@ commands =
4343
[testenv:pre-commit]
4444
skip_install = true
4545
deps = pre-commit
46-
passenv = HOMEPATH # needed on Windows
47-
commands = pre-commit run --all-files --show-diff-on-failure
46+
commands = pre-commit run --all-files
4847

4948

5049
[testenv:changelog]

0 commit comments

Comments
 (0)