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

See:
https://docs.openstack.org/hacking/latest/user/usage.html#enabling-off-by-default-checks

Change-Id: I8f9b580ad653e32290e5c4be8a639cf7d168d9ec
This commit is contained in:
e 2017-07-19 10:48:43 +08:00 committed by liuyamin
parent ce2f74b89b
commit 34d5767a04
1 changed files with 4 additions and 0 deletions

View File

@ -74,4 +74,8 @@ commands =
# F821: undefined name
ignore = F821
builtins = _
# [H106] Don't put vim configuration in source files.
# [H203] Use assertIs(Not)None to check for None.
# [H904] Delay string interpolations at logging calls.
enable-extensions = H106,H203,H904
exclude = .venv,.tox,dist,doc,*egg