Skip to content

Commit 62c024e

Browse files
committed
Let tox run lint, mypy, and html envs without 3.9
The tox environments that are not duplicated per Python version were set to run on Python 3.9, for consistency with Cygwin, where 3.9 is the latest available (through official Cygwin packages), so output can be compared between Cygwin and other platforms while troubleshooting problems. However, this prevented them from running altogether on systems where Python 3.9 was not installed. So I've added all the other Python versions the project supports as fallback versions for those tox environments to use, in one of the reasonable precedence orders, while keeping 3.9 as the first choice for the same reasons as before.
1 parent e16e4c0 commit 62c024e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Diff for: tox.ini

+3-3
Original file line numberDiff line numberDiff line change
@@ -11,20 +11,20 @@ commands = pytest --color=yes {posargs}
1111

1212
[testenv:lint]
1313
description = Lint via pre-commit
14-
base_python = py39
14+
base_python = py{39,310,311,312,38,37}
1515
set_env =
1616
SKIP = black-format
1717
commands = pre-commit run --all-files --hook-stage manual
1818

1919
[testenv:mypy]
2020
description = Typecheck with mypy
21-
base_python = py39
21+
base_python = py{39,310,311,312,38,37}
2222
commands = mypy -p git
2323
ignore_outcome = true
2424

2525
[testenv:html]
2626
description = Build HTML documentation
27-
base_python = py39
27+
base_python = py{39,310,311,312,38,37}
2828
deps = -r doc/requirements.txt
2929
allowlist_externals = make
3030
commands =

0 commit comments

Comments
 (0)