From 609ef0c41fde1c147e2bcd1321f03e1efc5b7113 Mon Sep 17 00:00:00 2001 From: chenghuiyu Date: Wed, 11 Oct 2017 13:34:45 +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 Change-Id: I73368bc191746e9ba30d205f9f36722f8e3eb5f6 --- tox.ini | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tox.ini b/tox.ini index dbd8b9c19..af5e3b5c4 100644 --- a/tox.ini +++ b/tox.ini @@ -89,6 +89,10 @@ commands = python setup.py build_sphinx ignore = E125,E126,E128,E129,E251,E265,E713,F402,F811,F812,H104,H237,H305,H307,H401,H402,H404,H405,N530,N531,N537 show-source = true builtins = _ + +# H106: Don’t put vim configuration in source files +# H203: Use assertIs(Not)None to check for None +enable-extensions = H106,H203 exclude = .venv,.git,.tox,dist,doc,*openstack/common*,*lib/python*,*egg,build,tools,.ropeproject,rally-scenarios, [hacking]