From 5473625e66184d9c6f7591583fa271d21566c701 Mon Sep 17 00:00:00 2001 From: wangzhenyu Date: Tue, 27 Jun 2017 16:54:22 +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: I1539758b4a02ad1d597482d168c95babe6a74e94 --- tox.ini | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tox.ini b/tox.ini index 50d32995..66ae77dd 100644 --- a/tox.ini +++ b/tox.ini @@ -43,6 +43,9 @@ commands = python setup.py build_sphinx [flake8] +# 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 builtins = _ exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg,tools