Make tox.ini run pep8/hacking checks on bin.

This updates the pep8 checks in our tox.ini file so that
we are also scanning the bin directory.

Additionally, it updates the main pep8 check so that it scans
cinder properly as well. Previously there were a bunch of files
getting skipped due to some of the pep8 pattern matching.

Change-Id: Ib47a590303409e62546a75625ee356c9fa7af6ad
This commit is contained in:
Dan Prince
2012-11-15 11:27:06 -05:00
parent 41c37d3666
commit 5d986e3121

View File

@@ -14,7 +14,11 @@ commands = /bin/bash run_tests.sh -N -P {posargs}
[testenv:pep8]
deps = pep8==1.1
commands = pep8 --repeat --show-source cinder setup.py
commands =
python tools/hacking.py --ignore=N4,E12,E711,E721 --repeat --show-source \
--exclude=.venv,.tox,dist,doc,openstack,*egg .
python tools/hacking.py --ignore=N4,E12,E711,E721 --repeat --show-source \
--filename=cinder* bin
[testenv:venv]
commands = {posargs}