diff --git a/run_tests.sh b/run_tests.sh index a3a74cdcf..a42d0d3d6 100755 --- a/run_tests.sh +++ b/run_tests.sh @@ -103,7 +103,8 @@ function copy_subunit_log { function run_pep8 { echo "Running pep8 ..." - srcfiles="--exclude=.venv,.git,.tox,dist,doc,*openstack/common*,*lib/python*,*egg ." + srcfiles="--exclude=.venv,.git,.tox,dist,doc,*openstack/common*,*lib/python*" + srcfiles+=",*egg,build ." # Just run PEP8 in current environment # ignore="--ignore=E12,E711,E721,E712" diff --git a/tox.ini b/tox.ini index 4d5dbdcb1..e4458844a 100644 --- a/tox.ini +++ b/tox.ini @@ -16,7 +16,7 @@ commands = python setup.py testr --testr-args='{posargs}' deps = pep8==1.3.3 commands = pep8 --ignore=E12,E711,E721,E712 --show-source \ - --exclude=.venv,.git,.tox,dist,doc,*openstack/common*,*lib/python*,*egg . + --exclude=.venv,.git,.tox,dist,doc,*openstack/common*,*lib/python*,*egg,build . [testenv:venv] commands = {posargs}