From 551d7fff115b294a92ba99f2c8cbbd19d743e1b9 Mon Sep 17 00:00:00 2001 From: wangzhenyu Date: Tue, 27 Jun 2017 18:25:47 +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: I4a66dadb6cf9873d49eef48386b6b0e4fbcd3f99 --- tox.ini | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tox.ini b/tox.ini index b629add..082d752 100644 --- a/tox.ini +++ b/tox.ini @@ -46,5 +46,8 @@ commands = oslo_debug_helper -t moganclient/tests {posargs} show-source = True ignore = E123,E125 +# H106: Don’t put vim configuration in source files +# H203: Use assertIs(Not)None to check for None +enable-extensions=H106,H203 builtins = _ exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg,build