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
This commit is contained in:
parent
80fe27bb97
commit
2fd8b9f6df
2
tox.ini
2
tox.ini
@ -7,9 +7,11 @@ skipsdist = True
|
|||||||
usedevelop = True
|
usedevelop = True
|
||||||
install_command = pip install -U --force-reinstall {opts} {packages}
|
install_command = pip install -U --force-reinstall {opts} {packages}
|
||||||
setenv = VIRTUAL_ENV={envdir}
|
setenv = VIRTUAL_ENV={envdir}
|
||||||
|
whitelist_externals = find
|
||||||
deps = -r{toxinidir}/requirements.txt
|
deps = -r{toxinidir}/requirements.txt
|
||||||
-r{toxinidir}/test-requirements.txt
|
-r{toxinidir}/test-requirements.txt
|
||||||
commands =
|
commands =
|
||||||
|
find . -type f -name "*.pyc" -delete
|
||||||
ostestr {posargs}
|
ostestr {posargs}
|
||||||
|
|
||||||
[testenv:pep8]
|
[testenv:pep8]
|
||||||
|
Loading…
Reference in New Issue
Block a user