From 2eb06e94534a6b5589066a13808d3f48d2c4cfb3 Mon Sep 17 00:00:00 2001 From: chenghuiyu Date: Wed, 22 Nov 2017 19:09:41 +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: I6c880ba9fcde60cbebdea4aa459b42c6b92d181c --- tox.ini | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tox.ini b/tox.ini index 3649cb71..9f63146c 100644 --- a/tox.ini +++ b/tox.ini @@ -58,6 +58,9 @@ commands = oslo_debug_helper {posargs} [flake8] 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,*lib/python*,*egg,build [hacking]