From 3945e3e9609f1f5da40c11dc5594a100b6a9e74e Mon Sep 17 00:00:00 2001 From: lioplhp Date: Fri, 23 Jun 2017 15:50:57 +0800 Subject: [PATCH] Enable some off-by-default checks Some of the available checks are diskabled by default, like: [H106] Don't put vim configuration in source files; [H203] Use assertIs(Not)None to check for None. Change-Id: Ibe4e8bb6373def06452ae6fc9ca16a99a8a05f29 --- tox.ini | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tox.ini b/tox.ini index cd6d4e4..51d39f8 100644 --- a/tox.ini +++ b/tox.ini @@ -60,8 +60,11 @@ commands = oslo-config-generator --config-file=etc/castellan/sample-config-generator.conf [flake8] +# [H106] Don't put vim configuration in source files. +# [H203] Use assertIs(Not)None to check for None. show-source = True exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg,build +enable-extensions = H106,H203 [hacking] import_exceptions = castellan.i18n