From 60bc97329d140432d43e4fe01090c026f1b18b91 Mon Sep 17 00:00:00 2001 From: "luke.li" Date: Thu, 22 Jun 2017 13:51:05 +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 This patch is to enable the H106 and H203 checks in fuxi project. Change-Id: I354c9d654d96838ac43d1ca4c73c70650adc5d5c --- tox.ini | 1 + 1 file changed, 1 insertion(+) diff --git a/tox.ini b/tox.ini index 2333701..de18a23 100644 --- a/tox.ini +++ b/tox.ini @@ -41,6 +41,7 @@ setenv = OS_TEST_PATH=./fuxi/tests/fullstack [flake8] show-source = True +enable-extensions = H106,H203 builtins = _ exclude=.venv,.git,.tox,dist,doc,*openstack/common*,*lib/python*,*egg,build,releasenotes