Update oslo-hacking and disable failing checks

This also brings in newer versions of flake8, pyflakes and pep8,
with new and updated checks.
Some of them fail on our current code base, so first those failing are
disabled.
Most of them will be enabled one-by-one in subsequent patches.

Change-Id: Ib5fc4640b33c238ddb4e59a441c6710f607296b1
This commit is contained in:
Pavlo Shchelokovskyy 2014-12-12 19:36:39 +02:00
parent e930bc2887
commit 46e5897c3e
2 changed files with 17 additions and 2 deletions

View File

@ -3,7 +3,7 @@
# process, which may cause wedges in the gate later.
# Hacking already pins down pep8, pyflakes and flake8
hacking>=0.8.0,<0.9
hacking>=0.9.4,<0.10
coverage>=3.6
discover
lockfile>=0.8

17
tox.ini
View File

@ -53,9 +53,24 @@ commands =
bash tools/config/generate_sample.sh -b . -p heat -o etc/heat
[flake8]
# E122 continuation line missing indentation or outdented
# E126 continuation line over-indented for hanging indent
# E128 continuation line under-indented for visual indent
# E251 unexpected spaces around keyword / parameter equals
# E265 block comment should start with '# '
# F402 import shadowed by loop variable
# F812 list comprehension redefines variable
# H101 Use TODO(NAME)
# H202 assertRaises Exception too broad
# H233 Python 3.x incompatible use of print operator
# H305 imports not grouped correctly
# H307 like imports should be grouped togethe
# H402 one line docstring needs punctuation
# H404 multi line docstring should start with a summary
# H405 multi line docstring summary not separated with an empty line
# H803 no full stop at the end of the commit message
ignore = H404,H803
# H904 Wrap long lines in parentheses instead of a backslash
ignore = E122,E126,E128,E251,E265,F402,F812,H101,H202,H233,H305,H307,H402,H404,H405,H803,H904
show-source = true
exclude=.venv,.git,.tox,dist,*openstack/common*,*lib/python*,*egg,tools,build
max-complexity=20