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: I646c4d1e36d30eec921fe0e4bb8d288ee134fd4f
This commit is contained in:
zhanghongtao 2017-07-26 14:36:37 +08:00
parent edf75cf9f2
commit d59e40f460
1 changed files with 3 additions and 0 deletions

View File

@ -93,7 +93,10 @@ commands =
[flake8]
# Temporarily disable complaints about docstring for public module/class/method
# H106 Dont put vim configuration in source files
# H203 Use assertIs(Not)None to check for None
ignore = D100,D101,D102,D103,D104,D105,D200,D201,D202,D204,D205,D300,D301,D400,D401
enable-extensions=H106,H203
show-source = true
exclude=.venv,.git,.tox,cover,dist,*lib/python*,*egg,tools,build,releasenotes
max-complexity=20