Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set basepython separately for each tox target #103

Merged
merged 1 commit into from
Dec 30, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading