Remove Python cache files before each Tox run.
This commit is contained in:
commit
0b1e38e5f6
1 changed files with 5 additions and 1 deletions
6
tox.ini
6
tox.ini
|
@ -7,9 +7,13 @@ minversion = 3.10.0
|
||||||
[testenv]
|
[testenv]
|
||||||
usedevelop = True
|
usedevelop = True
|
||||||
deps = -rtest_requirements.txt
|
deps = -rtest_requirements.txt
|
||||||
whitelist_externals = sh
|
whitelist_externals =
|
||||||
|
find
|
||||||
|
sh
|
||||||
install_command =
|
install_command =
|
||||||
sh scripts/pip {opts} {packages}
|
sh scripts/pip {opts} {packages}
|
||||||
|
commands_pre =
|
||||||
|
find {toxinidir} -type f -not -path '{toxinidir}/.tox/*' -path '*/__pycache__/*' -name '*.py[c|o]' -delete
|
||||||
commands =
|
commands =
|
||||||
pytest
|
pytest
|
||||||
py36,py37: black --check .
|
py36,py37: black --check .
|
||||||
|
|
Loading…
Reference in a new issue