Make sure there are no unused import
Remove all currently unused imports Prevent future unused imports Change-Id: I6ac26d5c71b79952a7732db300355a00310c712e
This commit is contained in:
parent
bb5ecc7351
commit
5d91a073a6
5
tox.ini
5
tox.ini
@ -15,13 +15,16 @@ sitepackages = True
|
|||||||
downloadcache = ~/cache/pip
|
downloadcache = ~/cache/pip
|
||||||
|
|
||||||
[testenv:pep8]
|
[testenv:pep8]
|
||||||
deps=pep8==1.3.3
|
deps=
|
||||||
|
pep8==1.3.3
|
||||||
|
pyflakes
|
||||||
commands =
|
commands =
|
||||||
python tools/hacking.py --doctest
|
python tools/hacking.py --doctest
|
||||||
python tools/hacking.py --ignore=E12,E711,E721,E712,N403,N404 --show-source \
|
python tools/hacking.py --ignore=E12,E711,E721,E712,N403,N404 --show-source \
|
||||||
--exclude=.venv,.git,.tox,dist,doc,*openstack/common*,*lib/python*,*egg .
|
--exclude=.venv,.git,.tox,dist,doc,*openstack/common*,*lib/python*,*egg .
|
||||||
python tools/hacking.py --ignore=E12,E711,E721,E712,N403,N404 --show-source \
|
python tools/hacking.py --ignore=E12,E711,E721,E712,N403,N404 --show-source \
|
||||||
--filename=nova* bin
|
--filename=nova* bin
|
||||||
|
bash tools/unused_imports.sh
|
||||||
|
|
||||||
[testenv:pylint]
|
[testenv:pylint]
|
||||||
setenv = VIRTUAL_ENV={envdir}
|
setenv = VIRTUAL_ENV={envdir}
|
||||||
|
Loading…
Reference in New Issue
Block a user