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: I36a6997fdb806b4d0a9d064107cc1451c766c987
This commit is contained in:
wangzhenyu 2017-06-27 18:15:51 +08:00 committed by Tim Burke
parent 0ee7c8272e
commit fd6e76029d

View File

@ -78,6 +78,9 @@ commands=
# H404: multi line docstring should start without a leading new line
# H405: multi line docstring summary not separated with an empty line
ignore = H101,H301,H306,H401,H403,H404,H405
# H106: Dont put vim configuration in source files
# H203: Use assertIs(Not)None to check for None
enable-extensions=H106,H203
show-source = True
exclude = .venv,.tox,dist,doc,*egg