From 34d5767a040d9de17f3b1ddb7d428c52b64e7fb4 Mon Sep 17 00:00:00 2001 From: e Date: Wed, 19 Jul 2017 10:48:43 +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 See: https://docs.openstack.org/hacking/latest/user/usage.html#enabling-off-by-default-checks Change-Id: I8f9b580ad653e32290e5c4be8a639cf7d168d9ec --- tox.ini | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tox.ini b/tox.ini index 65e9eec..63efa76 100644 --- a/tox.ini +++ b/tox.ini @@ -74,4 +74,8 @@ commands = # F821: undefined name ignore = F821 builtins = _ +# [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 = H106,H203,H904 exclude = .venv,.tox,dist,doc,*egg