From 0afab9141719b45af5308704468caf03ef9b928f Mon Sep 17 00:00:00 2001 From: loooosy Date: Tue, 18 Jul 2017 08:51:04 +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 the 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: I489669b36b1d56907285fffec702c737143f644e --- tox.ini | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tox.ini b/tox.ini index ec95c5e..1686237 100644 --- a/tox.ini +++ b/tox.ini @@ -35,6 +35,9 @@ show-source = True #H404: multi line docstring should start without a leading new line #H405: multi line docstring summary not separated with an empty line #H904: Wrap long lines in parentheses instead of a backslash +#H106 Don’t put vim configuration in source files +#H203 Use assertIs(Not)None to check for None ignore = H803,E302,E303,H233,H302,H404,H405,H904 +enable-extensions=H106,H203 builtins = _ exclude=.venv,.git,.tox,dist,doc,*openstack/common*,*lib/python*,*egg,build