From 8b70e73c86c62bd32384c717f55e04dd6f0be65a Mon Sep 17 00:00:00 2001 From: blue55 Date: Thu, 22 Jun 2017 09:14: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: Ie73e001aa632b771693f7bed98cfadcb495940f0 --- tox.ini | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tox.ini b/tox.ini index 94c62af..e8e6bca 100644 --- a/tox.ini +++ b/tox.ini @@ -28,7 +28,10 @@ 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 +enable-extensions = H106,H203 ignore = E123,E125 builtins = _ exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg,build