From 6f53a1822f88b2e401d58369ef9a5a12ffece7fd Mon Sep 17 00:00:00 2001 From: "John L. Villalovos" Date: Wed, 9 Nov 2016 05:20:56 -0800 Subject: Update to hacking 0.12.0 and use new checks MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Use hacking 0.12.0 Use the new checks that are available: [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. No changes were needed to the code to pass the new checks. Change-Id: I348a9ef60449fc3d5981013f0be3bfd66d503f6e --- tox.ini | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'tox.ini') diff --git a/tox.ini b/tox.ini index 74b1d8a..43b0729 100644 --- a/tox.ini +++ b/tox.ini @@ -50,6 +50,10 @@ commands = [flake8] ignore = exclude = .venv,.git,.tox,dist,doc,*lib/python*,*egg,build,tools +# [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 [hacking] import_exceptions = testtools.matchers -- cgit v1.2.1