From 227a9e9b63e2b7bce8b2812bf8074dd2933ee2a0 Mon Sep 17 00:00:00 2001 From: zhengwei6082 Date: Fri, 23 Jun 2017 17:25:39 +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: I369cff1c0f7f3cd3f5bcf3785b6904c9326c6759 --- tox.ini | 1 + 1 file changed, 1 insertion(+) diff --git a/tox.ini b/tox.ini index 907c2a008..6c7f19f7d 100644 --- a/tox.ini +++ b/tox.ini @@ -49,6 +49,7 @@ commands = show-source=True ignore= H105,E123,E226,N320 builtins= _ +enable-extensions = H106,H203 exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg,build,*sqlalchemy/alembic/versions/*,demo/,releasenotes [testenv:wheel]