Skip to content

Commit

Permalink
Set basepython separately for each tox target
Browse files Browse the repository at this point in the history
  • Loading branch information
bwhmather committed Dec 30, 2023
1 parent d7f061c commit f3de6fe
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -3,39 +3,43 @@ envlist = py38,py39,py310,py311,black,isort,ssort,pyflakes,pylint,mypy
isolated_build = true

[testenv]
basepython = py311
deps =
pytest
pyyaml==6.0
commands =
pytest -vv tests/

[testenv:black]
basepython = py311
deps =
black
skip_install = True
commands =
black --check --diff .

[testenv:isort]
basepython = py311
deps =
isort
skip_install = True
commands =
isort --check-only --diff .

[testenv:ssort]
basepython = py311
commands =
ssort --check --diff src/ tests/

[testenv:pyflakes]
basepython = py311
deps =
pyflakes
skip_install = True
commands =
pyflakes src/ tests/

[testenv:pylint]
basepython = py311
deps =
pytest
pyyaml==6.0
Expand All @@ -46,6 +50,7 @@ commands =
pylint -E src/ tests/

[testenv:mypy]
basepython = py311
deps =
mypy
pytest
Expand Down

0 comments on commit f3de6fe

Please sign in to comment.