Enable some off-by-default hacking rules

This commit enables the following two hacking rules
which are disabled by default.

* H203 Use assertIs(Not)None to check for None
* H904 Delay string interpolations at logging calls

Recently we clean them up in our code base and
it looks better to detect them automatically.

Change-Id: I4fb81b1d8e29c21aecd909a54d3294362fe140a2
This commit is contained in:
Akihiro Motoki 2017-05-17 20:44:42 +00:00
parent 71c9e4bfa7
commit 466bdb8fd5

View File

@ -119,6 +119,10 @@ commands =
exclude = .venv,.git,.tox,dist,*lib/python*,*egg,build,panel_template,dash_template,local_settings.py,*/local/*,*/test/test_plugins/*,.ropeproject,node_modules
# H405 multi line docstring summary not separated with an empty line
ignore = H405
# Enable the following hacking rules which are disabled by default
# H203 Use assertIs(Not)None to check for None
# H904 Delay string interpolations at logging calls
enable-extensions=H203,H904
max-complexity = 20
[hacking]