From 2413e4ac728696898d23b338f7aff380f84a7278 Mon Sep 17 00:00:00 2001 From: Luong Anh Tuan Date: Thu, 1 Feb 2018 09:31:53 +0700 Subject: [PATCH] Enable hacking-extensions H204, H205 This patch enable extensions: -[H204] Use assert(Not)Equal to check for equality. -[H205] Use assert(Greater|Less)(Equal) for comparison. Change-Id: If1b09426deba024ce75ee0d2d687c2501a1e141d --- tox.ini | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tox.ini b/tox.ini index 77a211d..7e7400a 100644 --- a/tox.ini +++ b/tox.ini @@ -105,7 +105,9 @@ exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg,tools # [H904] Delay string interpolations at logging calls # [H106] Don’t put vim configuration in source files # [H203] Use assertIs(Not)None to check for None. -enable-extensions=H904,H106,H203 +# [H204] Use assert(Not)Equal to check for equality +# [H205] Use assert(Greater|Less)(Equal) for comparison +enable-extensions=H904,H106,H203,H204,H205 [hacking] import_exceptions = sahara.i18n