From 6d816a90e3b41a14783558b3d916e7c15ae90b65 Mon Sep 17 00:00:00 2001 From: blue55 Date: Thu, 22 Jun 2017 10:03:50 +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: Icb3a3828dff23f3aafe9332c352b38ffbcf17a24 --- tox.ini | 1 + 1 file changed, 1 insertion(+) diff --git a/tox.ini b/tox.ini index 57a983c..e8615fe 100644 --- a/tox.ini +++ b/tox.ini @@ -64,3 +64,4 @@ commands = bindep test [flake8] exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg,tools show-source = True +enable-extensions = H203,H106