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: Ie38ec248651b57f2f2886cf90366cbf13673ffaf
This commit is contained in:
lingyongxu
2017-06-22 16:52:29 +08:00
parent 16d16206c9
commit c68e2a19aa

View File

@@ -130,8 +130,10 @@ commands = sphinx-build -W -b html doc/source doc/build/html
# TODO(ihrachys) reenable N537 when new neutron-lib release is available
# N537 Log messages should not be translated
ignore = E125,E126,E128,E129,E265,H404,H405,N530,N534,N536,N537
# 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=H904
enable-extensions=H106,H203,H904
show-source = true
exclude = ./.*,build,dist,doc