From 3b67b1ba62ed4a08864c6f006f1881e9342df7fc Mon Sep 17 00:00:00 2001 From: loooosy Date: Thu, 29 Jun 2017 17:27:15 +0800 Subject: [PATCH] Enable some off-by-default checks Some of the available checks are disabled by default, like: [H106] Do not put vim configuration in source files [H203] Use assertIs(Not)None to check for None [H904] Delay string interpolations at logging calls Change-Id: Iff0835a68cea4b1d57407829632c5a903810aafd --- tox.ini | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tox.ini b/tox.ini index 424c91346..f6056ae75 100644 --- a/tox.ini +++ b/tox.ini @@ -92,8 +92,11 @@ commands = python setup.py build_sphinx # N530 direct neutron imports not allowed # TODO(ihrachys) -- reenable N537 when new neutron-lib release is available # N537 Log messages should not be translated +# H106: Do not put vim configuration in source files +# H203: Use assertIs(Not)None to check for None +# H904: Delay string interpolations at logging calls ignore = E125,E126,E128,E129,E265,H404,H405,N530,N537 -enable-extensions=H904 +enable-extensions=H106,H203,H904 show-source = true exclude = .venv,.git,.tox,dist,doc,*lib/python*,.tmp,*egg,build,tools,.ropeproject,rally-scenarios