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
This commit is contained in:
Luong Anh Tuan 2018-02-01 09:31:53 +07:00
parent 77e59694e5
commit 2413e4ac72
1 changed files with 3 additions and 1 deletions

View File

@ -105,7 +105,9 @@ exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg,tools
# [H904] Delay string interpolations at logging calls
# [H106] Dont 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