summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorzhuzeyu <zhu.zeyu@zte.com.cn>2017-02-07 16:50:42 +0800
committerzhuzeyu <zhu.zeyu@zte.com.cn>2017-02-07 16:53:55 +0800
commitb7c06da33bfbcf434dbe978503839c225a84ff0d (patch)
treee8c263be54cfe9394c2fd1edd1354e6e31dc7fab
parent2021d90abd0a12ee6afedc2d0ed2872d67243e97 (diff)
Delete deprecated Hacking in tox.ini
Some hacking have been removed,so we can delete them. More details: https://github.com/openstack-dev/hacking/blob/master/setup.cfg Change-Id: Id7161b2679aaeafaacf447a76efe0adf38da9b87 Signed-off-by: zhuzeyu <zhu.zeyu@zte.com.cn>
-rw-r--r--api/tox.ini4
-rw-r--r--client/tox.ini4
2 files changed, 2 insertions, 6 deletions
diff --git a/api/tox.ini b/api/tox.ini
index 5b5d52f..65f48a8 100644
--- a/api/tox.ini
+++ b/api/tox.ini
@@ -39,12 +39,10 @@ commands = python setup.py build_sphinx
# TODO(dmllr): Analyze or fix the warnings blacklisted below
# E711 comparison to None should be 'if cond is not None:'
# E712 comparison to True should be 'if cond is True:' or 'if cond:'
-# H302 import only modules
-# 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
# H904 Wrap long lines in parentheses instead of a backslash
-ignore = E711,E712,H302,H402,H404,H405,H904,F841,F821,E265,F812,F402,E226,E731
+ignore = E711,E712,H404,H405,H904,F841,F821,E265,F812,F402,E226,E731
exclude = .venv,.git,.tox,dist,doc,etc,*escalator/locale*,*openstack/common*,*lib/python*,*egg,build,escalator/i18n.py
[hacking]
diff --git a/client/tox.ini b/client/tox.ini
index eca4fd9..6a6ea7d 100644
--- a/client/tox.ini
+++ b/client/tox.ini
@@ -33,9 +33,7 @@ downloadcache = ~/cache/pip
[flake8]
# H233 Python 3.x incompatible use of print operator
-# H302 import only modules
-# H303 no wildcard import
# H404 multi line docstring should start with a summary
-ignore = F403,F812,H233,H302,H303,H404,F401,E731
+ignore = F403,F812,H233,H404,F401,E731
show-source = True
exclude = .venv,.tox,dist,doc,*egg,build