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;
[H904] Delay string interpolations at logging calls

Change-Id: Ic43e8b77cd6a700f3b71e89d6017f11a742fe87f
This commit is contained in:
chenghuiyu 2017-11-22 18:38:01 +08:00
parent 585225609e
commit 045995b079

View File

@ -58,3 +58,7 @@ ignore =
show-source = true
builtins = _
exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg,tools,build,example
# H106: Dont put vim configuration in source files
# H203: Use assertIs(Not)None to check for None
# H904: Delay string interpolations at logging calls
enable-extensions=H106,H203,H204,H205,H904