summaryrefslogtreecommitdiff
path: root/tox.ini
diff options
context:
space:
mode:
authorChristian Berendt <berendt@b1-systems.de>2014-08-05 21:35:12 +0200
committerChristian Berendt <berendt@b1-systems.de>2014-08-05 22:18:14 +0200
commit33058cbe8e19195ddace8ad5adad7bf7927c731e (patch)
tree7fb086e398a1cfd8be80833214d533fc6913f53d /tox.ini
parent77991e571b8d6a5b8798c78fb72bbda98d1d6787 (diff)
downloadpython-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.ini23
1 files changed, 19 insertions, 4 deletions
diff --git a/tox.ini b/tox.ini
index a409dfda..40978d65 100644
--- a/tox.ini
+++ b/tox.ini
@@ -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