From d59e40f4609ecb18b24713bd94fa7d2e290b431c Mon Sep 17 00:00:00 2001 From: zhanghongtao Date: Wed, 26 Jul 2017 14:36:37 +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: I646c4d1e36d30eec921fe0e4bb8d288ee134fd4f --- tox.ini | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tox.ini b/tox.ini index 18bee223b..99f9a77fd 100644 --- a/tox.ini +++ b/tox.ini @@ -93,7 +93,10 @@ commands = [flake8] # Temporarily disable complaints about docstring for public module/class/method +# H106 Don’t put vim configuration in source files +# H203 Use assertIs(Not)None to check for None ignore = D100,D101,D102,D103,D104,D105,D200,D201,D202,D204,D205,D300,D301,D400,D401 +enable-extensions=H106,H203 show-source = true exclude=.venv,.git,.tox,cover,dist,*lib/python*,*egg,tools,build,releasenotes max-complexity=20