From 045995b07951e1caf82b45ebfe313b01b1f13825 Mon Sep 17 00:00:00 2001 From: chenghuiyu Date: Wed, 22 Nov 2017 18:38:01 +0800 Subject: [PATCH] Enable some off-by-default checks MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Some of 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; [H904] Delay string interpolations at logging calls Change-Id: Ic43e8b77cd6a700f3b71e89d6017f11a742fe87f --- tox.ini | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tox.ini b/tox.ini index b5a7d02d..2e080e57 100644 --- a/tox.ini +++ b/tox.ini @@ -58,3 +58,7 @@ ignore = show-source = true builtins = _ exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg,tools,build,example +# 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,H204,H205,H904