Enable some off-by-default checks

Some of the 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: Ib252f1efafddcf7d90ad67b85877285df06f044d
This commit is contained in:
loooosy 2017-07-11 10:52:20 +08:00
parent e1f5a460dc
commit 47da0aacae

View File

@ -52,9 +52,12 @@ commands = sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasen
#
# Due to the upgrade to hacking 0.9.2 the following checking are
# ignored on purpose for the moment and should be re-enabled.
# H106: Dont put vim configuration in source files
# H203: Use assertIs(Not)None to check for None
show-source = True
ignore = E123,E125,E126,E127,E128,E251,E265,H302,H405,H904,H404
enable-extensions=H106,H203
builtins = _
exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg,build
max-complexity=30