Enabling PEP8 tests in tox and re-working source to comply

Change-Id: Ia75aea24419fdef92aa81b213bd5178b2718f716
This commit is contained in:
Tim Kelsey
2014-10-23 13:15:14 +01:00
parent 8e6697b063
commit d764198ae1
31 changed files with 431 additions and 409 deletions

16
tox.ini
View File

@@ -23,18 +23,12 @@ commands = python setup.py testr --coverage --testr-args='{posargs}'
[flake8]
# E123, E125 skipped as they are invalid PEP-8.
# These tests are skipped for now, they will be added in later:
# H404 multi line docstring should start without a leading new line
# H405 multi line docstring summary not separated with an empty line
# H306 imports not in alphabetical order
# H301 one import per line
# H101 Use TODO(NAME)
# H103 Header does not match Apache 2.0 License notice
# H904 Wrap long lines in parentheses instead of a backslash
# E271 multiple spaces after keyword
# E301 expected 1 blank line, found 0
# H303 no wild card imports
# F403 unable to detect undefined names
# H104 file contains nothing but comments
# H302 import only modules
show-source = True
ignore = E123,E125,H404,H405,H306,H301,H101,H103,H904,E271,E301,
ignore = E123,E125,H303,F403,H104,H302
builtins = _
exclude=.venv,.git,.tox,dist,doc,*openstack/common*,*lib/python*,*egg,build