From: Dan Prince Date: Thu, 15 Nov 2012 16:27:06 +0000 (-0500) Subject: Make tox.ini run pep8/hacking checks on bin. X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=5d986e3121e8fb275f011c2cb347d9d24edca7c3;p=openstack-build%2Fcinder-build.git 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 --- diff --git a/tox.ini b/tox.ini index a9edab8a9..afb9d3317 100644 --- a/tox.ini +++ b/tox.ini @@ -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}