Enable some off-by-default checks

Some of the available checks are diskabled by default, like:
[H106] Don't put vim configuration in source files;
[H203] Use assertIs(Not)None to check for None.

Change-Id: Ibe4e8bb6373def06452ae6fc9ca16a99a8a05f29
This commit is contained in:
lioplhp 2017-06-23 15:50:57 +08:00
parent e8e28b4360
commit 3945e3e960
1 changed files with 3 additions and 0 deletions

View File

@ -60,8 +60,11 @@ commands =
oslo-config-generator --config-file=etc/castellan/sample-config-generator.conf
[flake8]
# [H106] Don't put vim configuration in source files.
# [H203] Use assertIs(Not)None to check for None.
show-source = True
exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg,build
enable-extensions = H106,H203
[hacking]
import_exceptions = castellan.i18n