From 85251cf5d4648965a4b5b08010bec9d4b088e4f6 Mon Sep 17 00:00:00 2001 From: Luke Murphy Date: Sun, 19 May 2019 12:46:32 +0200 Subject: [PATCH] Ensure to remove cache files for Tox runs --- tox.ini | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tox.ini b/tox.ini index dbfc0744c..bcfa1897d 100644 --- a/tox.ini +++ b/tox.ini @@ -7,9 +7,13 @@ minversion = 3.10.0 [testenv] usedevelop = True deps = -rtest_requirements.txt -whitelist_externals = sh +whitelist_externals = + find + sh install_command = sh scripts/pip {opts} {packages} +commands_pre = + find {toxinidir} -type f -not -path '{toxinidir}/.tox/*' -path '*/__pycache__/*' -name '*.py[c|o]' -delete commands = pytest py36,py37: black --check .