From 1ef88fdd5bdab4a83c011277c6693c9ed500c0b7 Mon Sep 17 00:00:00 2001 From: Dan Prince Date: Fri, 13 Jul 2012 13:47:10 -0400 Subject: [PATCH] Exclude openstack-common from pep8 checks. Updates tox.ini and run_tests.sh to exclude openstack-common code from pep8 checks. Fixes LP Bug #1020792 Change-Id: I6bb9747f86f7677f0e9c4169c04d6f3fbd4b3480 --- run_tests.sh | 2 +- tox.ini | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/run_tests.sh b/run_tests.sh index 26f3fdda8bfa..0fd7f4169dfd 100755 --- a/run_tests.sh +++ b/run_tests.sh @@ -107,7 +107,7 @@ function run_pep8 { # when running on devstack. # NOTE(lzyeval): Avoid selecting *.pyc files to reduce pep8 check-up time # when running on devstack. - srcfiles=`find nova -type f -name "*.py"` + srcfiles=`find nova -type f -name "*.py" ! -wholename "nova\/openstack*"` srcfiles+=" `find bin -type f ! -name "nova.conf*" ! -name "*api-paste.ini*"`" srcfiles+=" `find tools -type f -name "*.py"`" srcfiles+=" setup.py" diff --git a/tox.ini b/tox.ini index 4e1864d77042..9d01d1450dd3 100644 --- a/tox.ini +++ b/tox.ini @@ -18,7 +18,7 @@ downloadcache = ~/cache/pip [testenv:pep8] deps = pep8==1.1 -commands = python tools/hacking.py --ignore=N4 --repeat --show-source --exclude=.venv,.tox,dist,doc,*egg . +commands = python tools/hacking.py --ignore=N4 --repeat --show-source --exclude=.venv,.tox,dist,doc,openstack,*egg . [testenv:cover] setenv = NOSE_WITH_COVERAGE=1