Enable some off-by-default checks

Some of available checks are disabled by default, like:
[H106] Don’t put vim configuration in source files
[H203] Use assertIs(Not)None to check for None

Change-Id: I73368bc191746e9ba30d205f9f36722f8e3eb5f6
This commit is contained in:
chenghuiyu 2017-10-11 13:34:45 +08:00
parent 8a2b664a49
commit 609ef0c41f
1 changed files with 4 additions and 0 deletions

View File

@ -89,6 +89,10 @@ commands = python setup.py build_sphinx
ignore = E125,E126,E128,E129,E251,E265,E713,F402,F811,F812,H104,H237,H305,H307,H401,H402,H404,H405,N530,N531,N537
show-source = true
builtins = _
# H106: Dont put vim configuration in source files
# H203: Use assertIs(Not)None to check for None
enable-extensions = H106,H203
exclude = .venv,.git,.tox,dist,doc,*openstack/common*,*lib/python*,*egg,build,tools,.ropeproject,rally-scenarios,
[hacking]