Don't check build/ for pep8 violations
There's no need to run pep8 on the build dir, and it contains E502 false positives due to some part of the build process adding line continuations in places that they're not needed. Change-Id: I7ea19aea2b9e46503aa8acc06ce6b9d7ea18113a
This commit is contained in:
parent
09c8626bdc
commit
d7f1a71311
@ -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"
|
||||
|
2
tox.ini
2
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}
|
||||
|
Loading…
Reference in New Issue
Block a user