From 2fd8b9f6df29ee7ceda78168c6afbf3cefbcf77c Mon Sep 17 00:00:00 2001 From: Masayuki Igawa Date: Fri, 8 Jan 2016 16:52:21 +0900 Subject: [PATCH] Add command deleting *.pyc before executing ostestr This commit adds a command for deleting *.pyc before executing ostestr with tox. This patch would help that removing unnecessary *.pyc files when we rename, move or remove *.py ones. Change-Id: I5fcce2e50cb7af9206175f340dad151e3eee6a9c --- tox.ini | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tox.ini b/tox.ini index aacfc76..48212b7 100644 --- a/tox.ini +++ b/tox.ini @@ -7,9 +7,11 @@ skipsdist = True usedevelop = True install_command = pip install -U --force-reinstall {opts} {packages} setenv = VIRTUAL_ENV={envdir} +whitelist_externals = find deps = -r{toxinidir}/requirements.txt -r{toxinidir}/test-requirements.txt commands = + find . -type f -name "*.pyc" -delete ostestr {posargs} [testenv:pep8]