From f87c349bc3c41caf0d7300469260f69f61e8750c Mon Sep 17 00:00:00 2001 From: blue55 Date: Thu, 22 Jun 2017 11:01:23 +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: I54b4b950dfcd2ce5a64f38b5d5b5cbe95846a8fa --- tox.ini | 1 + 1 file changed, 1 insertion(+) diff --git a/tox.ini b/tox.ini index 1ee6e4bff..043767cad 100644 --- a/tox.ini +++ b/tox.ini @@ -96,6 +96,7 @@ commands = bandit -r oslo_messaging -x tests -n5 [flake8] show-source = True +enable-extensions = H203,H106 ignore = H405 exclude = .tox,dist,doc,*.egg,build,__init__.py