From f10fd4f5d45a2349071cc3415d12bb60e5d5dd6c Mon Sep 17 00:00:00 2001 From: lioplhp Date: Fri, 23 Jun 2017 15:45:02 +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: Ib822b3b4cb9ae1176a8d69bbc0ab45126adc1bab --- tox.ini | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tox.ini b/tox.ini index 3d5f89d5..780c7d46 100644 --- a/tox.ini +++ b/tox.ini @@ -69,8 +69,11 @@ commands= python setup.py build_sphinx [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,releasenotes +enable-extensions = H106,H203 [testenv:releasenotes] commands = sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html