Skip to content

Commit

Permalink
Exclude openstack-common from pep8 checks.
Browse files Browse the repository at this point in the history
Updates tox.ini and run_tests.sh to exclude openstack-common code
from pep8 checks.

Fixes LP Bug #1020792

Change-Id: I6bb9747f86f7677f0e9c4169c04d6f3fbd4b3480
  • Loading branch information
dprince committed Jul 13, 2012
1 parent 6cfd3ab commit 1ef88fd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion run_tests.sh
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Expand Up @@ -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
Expand Down

0 comments on commit 1ef88fd

Please sign in to comment.