From 466bdb8fd507b82cfd6d73e84b979b054a9e94d9 Mon Sep 17 00:00:00 2001 From: Akihiro Motoki Date: Wed, 17 May 2017 20:44:42 +0000 Subject: [PATCH] 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 --- tox.ini | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tox.ini b/tox.ini index 4ccf487655..517d4c3c58 100644 --- a/tox.ini +++ b/tox.ini @@ -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]