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

Change-Id: I3891fb42fe26d0edfbf85fddd2da5d8ff7739202
story: 2001301
task: 5852
This commit is contained in:
chenghuiyu 2017-11-22 16:52:15 +08:00
parent bb9bb2d05b
commit 49404342ec
1 changed files with 3 additions and 1 deletions

View File

@ -116,8 +116,10 @@ show-source = true
builtins = _
exclude = .venv,.git,.tox,dist,doc,*lib/python*,*egg,build
import-order-style = pep8
# [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
[hacking]
import_exceptions = octavia.i18n