From 49404342ecde711e8b51113185c1d1040e1a9595 Mon Sep 17 00:00:00 2001 From: chenghuiyu Date: Wed, 22 Nov 2017 16:52:15 +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 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: I3891fb42fe26d0edfbf85fddd2da5d8ff7739202 story: 2001301 task: 5852 --- tox.ini | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tox.ini b/tox.ini index 84a8398769..815c81861a 100644 --- a/tox.ini +++ b/tox.ini @@ -116,8 +116,10 @@ show-source = true builtins = _ exclude = .venv,.git,.tox,dist,doc,*lib/python*,*egg,build import-order-style = pep8 +# [H106]: Don’t put vim configuration in source files +# [H203]: Use assertIs(Not)None to check for None # [H904] Delay string interpolations at logging calls. -enable-extensions=H904 +enable-extensions=H106,H203,H904 [hacking] import_exceptions = octavia.i18n