diff options
author | Christian Berendt <berendt@b1-systems.de> | 2014-08-05 21:35:12 +0200 |
---|---|---|
committer | Christian Berendt <berendt@b1-systems.de> | 2014-08-05 22:18:14 +0200 |
commit | 33058cbe8e19195ddace8ad5adad7bf7927c731e (patch) | |
tree | 7fb086e398a1cfd8be80833214d533fc6913f53d /tox.ini | |
parent | 77991e571b8d6a5b8798c78fb72bbda98d1d6787 (diff) | |
download | python-novaclient-33058cbe8e19195ddace8ad5adad7bf7927c731e.tar.gz |
Enable several checks and do not check docs/source/conf.py
* E265 block comment should start with '# '
* H302 import only modules
Do not check docs/source/conf.py. The file is imported from the
cookiecutter template.
Documented why checks are ignored and if they should be enabled
in the future.
Change-Id: I367064ecaa6d1fd9d918f7ce003303e2db660647
Diffstat (limited to 'tox.ini')
-rw-r--r-- | tox.ini | 23 |
1 files changed, 19 insertions, 4 deletions
@@ -26,8 +26,23 @@ commands = python setup.py testr --coverage --testr-args='{posargs}' downloadcache = ~/cache/pip [flake8] -# TODO fix following rules from hacking 0.9 -# E265,H402,H405,H904 -ignore = E12,E265,F811,F821,H302,H402,H404,H405,H904 +# Following checks should be enabled in the future. +# +# H404 multi line docstring should start without a leading new line +# H405 multi line docstring summary not separated with an empty line +# +# Following checks are ignored on purpose. +# +# H402 one line docstring needs punctuation +# reason: removed in hacking (https://review.openstack.org/#/c/101497/) +# +# H904 wrap long lines in parentheses instead of a backslash +# reason: removed in hacking (https://review.openstack.org/#/c/101701/) +# +# Additional checks are also ignored on purpose: E12, F811, F821 +ignore = E12,F811,F821,H402,H404,H405,H904 show-source = True -exclude=.venv,.git,.tox,dist,*openstack/common*,*lib/python*,*egg,build +exclude=.venv,.git,.tox,dist,*openstack/common*,*lib/python*,*egg,build,doc/source/conf.py + +[hacking] +import_exceptions = novaclient.openstack.common.gettextutils |