From f5488e67028887f60606bbe032409cf24cb29207 Mon Sep 17 00:00:00 2001 From: "jeremy.zhang" Date: Wed, 7 Jun 2017 09:59:44 +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 Zun project. Change-Id: Ib15bf2af5daebb5cd4d36f36226d92874198296b --- tox.ini | 1 + 1 file changed, 1 insertion(+) diff --git a/tox.ini b/tox.ini index d47522aa7..7bb73a8f0 100644 --- a/tox.ini +++ b/tox.ini @@ -62,6 +62,7 @@ commands = [flake8] show-source = True +enable-extensions = H203,H106 builtins = _ exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg,build