Skip to content

Commit

Permalink
chore: remove tox envdir values
Browse files Browse the repository at this point in the history
tox > 4 no longer will re-use the tox directory :(  What this means is
that with the previous config if you ran:
    $ tox -e mypy; tox -e isort; tox -e mypy
It would recreate the tox environment each time :(

By removing the `envdir` values it will have the tox environments in
separate directories and not recreate them.

The have an FAQ entry about this:
https://tox.wiki/en/latest/upgrading.html#re-use-of-environments
  • Loading branch information
JohnVillalovos authored and nejch committed Jan 23, 2023
1 parent 9322db6 commit 3c7c7fc
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -28,42 +28,36 @@ commands =

[testenv:black]
basepython = python3
envdir={toxworkdir}/lint
deps = -r{toxinidir}/requirements-lint.txt
commands =
black {posargs} .

[testenv:isort]
basepython = python3
envdir={toxworkdir}/lint
deps = -r{toxinidir}/requirements-lint.txt
commands =
isort {posargs} {toxinidir}

[testenv:mypy]
basepython = python3
envdir={toxworkdir}/lint
deps = -r{toxinidir}/requirements-lint.txt
commands =
mypy {posargs}

[testenv:flake8]
basepython = python3
envdir={toxworkdir}/lint
deps = -r{toxinidir}/requirements-lint.txt
commands =
flake8 {posargs} .

[testenv:pylint]
basepython = python3
envdir={toxworkdir}/lint
deps = -r{toxinidir}/requirements-lint.txt
commands =
pylint {posargs} gitlab/

[testenv:cz]
basepython = python3
envdir={toxworkdir}/lint
deps = -r{toxinidir}/requirements-lint.txt
commands =
cz check --rev-range 65ecadc..HEAD # cz is fast, check from first valid commit
Expand Down

0 comments on commit 3c7c7fc

Please sign in to comment.