Skip to content

Commit

Permalink
Merge pull request #103 from bwhmather/tox-separate-basepython
Browse files Browse the repository at this point in the history
Set basepython separately for each tox target
  • Loading branch information
bwhmather authored Dec 30, 2023
2 parents d7f061c + f3de6fe commit 8bfbbac
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 8bfbbac

Please sign in to comment.