From fd6e76029dc725ad48ae4e250f1c70a58740cad7 Mon Sep 17 00:00:00 2001 From: wangzhenyu Date: Tue, 27 Jun 2017 18:15:51 +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: I36a6997fdb806b4d0a9d064107cc1451c766c987 --- tox.ini | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tox.ini b/tox.ini index bd20632a..49de93dc 100644 --- a/tox.ini +++ b/tox.ini @@ -78,6 +78,9 @@ commands= # H404: multi line docstring should start without a leading new line # H405: multi line docstring summary not separated with an empty line ignore = H101,H301,H306,H401,H403,H404,H405 +# 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,.tox,dist,doc,*egg