From f4faf2a869d599825574fd340083bd335267ea77 Mon Sep 17 00:00:00 2001 From: lingyongxu Date: Thu, 22 Jun 2017 17:08:29 +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: Ic641fcc099ce51ee4c03b0ce17a6f57d326dfd3f --- tox.ini | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tox.ini b/tox.ini index bb3d2799b..e295a58dd 100644 --- a/tox.ini +++ b/tox.ini @@ -82,6 +82,9 @@ commands = pifpaf -g AODH_TEST_STORAGE_URL run postgresql -- oslo_debug_helper { [flake8] ignore = exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg,build,install-guide +# [H106] Don't put vim configuration in source files. +# [H203] Use assertIs(Not)None to check for None. +enable-extensions=H106,H203 show-source = True [hacking]