From 6cc79c8c30ac77fc032b0a20c4a9cc8a9fbb14c5 Mon Sep 17 00:00:00 2001 From: blue55 Date: Fri, 23 Jun 2017 10:43:45 +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: Icd0162ac6bef12b2303c41bc11c917901c6dcade --- tox.ini | 1 + 1 file changed, 1 insertion(+) diff --git a/tox.ini b/tox.ini index e7edec2..88153df 100644 --- a/tox.ini +++ b/tox.ini @@ -69,6 +69,7 @@ show-source = True # E123, E125 skipped as they are invalid PEP-8. # H405 multi line docstring summary not separated with an empty line ignore = E123,E125,H405 +enable-extensions = H203,H106 builtins = _ exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg,build,.ropeproject,tools