From cc60458f27ecddfc06a1ed49cb4cab98f8752828 Mon Sep 17 00:00:00 2001 From: loooosy Date: Tue, 18 Jul 2017 08:55:17 +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: I3d9eba508155f7ef8eba5185b27bd2673fe95d0f --- tox.ini | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tox.ini b/tox.ini index 1855f33..84efc37 100644 --- a/tox.ini +++ b/tox.ini @@ -87,5 +87,8 @@ max-complexity = 30 # H405 Multiline docstring separated by empty line # E402 module level import not at top of file FIXME remove this ignore = H904,H405,E402 +# H106 Don’t put vim configuration in source files +# H203 Use assertIs(Not)None to check for None +enable-extensions=H106,H203 show-source = True exclude=.venv,.git,.tox,dist,*egg,build