From 47da0aacae00014ecf4de855ff00eb11b66deeba Mon Sep 17 00:00:00 2001 From: loooosy Date: Tue, 11 Jul 2017 10:52:20 +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: Ib252f1efafddcf7d90ad67b85877285df06f044d --- tox.ini | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tox.ini b/tox.ini index 9936394a..193dac9e 100644 --- a/tox.ini +++ b/tox.ini @@ -52,9 +52,12 @@ commands = sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasen # # Due to the upgrade to hacking 0.9.2 the following checking are # ignored on purpose for the moment and should be re-enabled. +# H106: Don’t put vim configuration in source files +# H203: Use assertIs(Not)None to check for None show-source = True ignore = E123,E125,E126,E127,E128,E251,E265,H302,H405,H904,H404 +enable-extensions=H106,H203 builtins = _ exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg,build max-complexity=30