From ac059ea575ab071680041c5dffb6f8d396d51bf8 Mon Sep 17 00:00:00 2001 From: loooosy Date: Fri, 23 Jun 2017 16:47:02 +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 Depends-On: Ib6451504530f932ebd63374618d213ff7086dd1c Change-Id: I1e81dd00d6c19574382d3c065826255879708833 --- tox.ini | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tox.ini b/tox.ini index d940e4f3e..0fe3032c8 100644 --- a/tox.ini +++ b/tox.ini @@ -38,9 +38,12 @@ commands = oslo_debug_helper {posargs} [flake8] # E123, E125 skipped as they are invalid PEP-8. +# H106: Don’t put vim configuration in source files +# H203: Use assertIs(Not)None to check for None show-source = True ignore = E123,E125 +enable-extensions=H106,H203 builtins = _ exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg,build