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: I1e2612a92014b17d9f3158ec868f07e734263f13
This commit is contained in:
liangcui 2017-07-06 10:58:01 +08:00
parent e93f2f5397
commit 8c96cfd08c
1 changed files with 3 additions and 0 deletions

View File

@ -27,11 +27,14 @@ commands = python setup.py testr --coverage --testr-args='{posargs}'
[flake8]
# E123, E125 skipped as they are invalid PEP-8.
# [H106] Dont put vim configuration in source files
# [H203] Use assertIs(Not)None to check for None
show-source = True
ignore = E123,E125
builtins = _
exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg,build
enable-extensions = H106,H203
[hacking]
import_exceptions =