Enable a few common hacking checks
Import the additional hacking checks enabled from aodh, to use consistent checks. Change-Id: I4690ccb54cecc8ddddbfebf46e6ba58c7a7937b3 Signed-off-by: Takashi Kajinami <kajinamit@oss.nttdata.com>
This commit is contained in:
6
tox.ini
6
tox.ini
@@ -89,4 +89,10 @@ show-source = True
|
||||
# W503 line break before binary operator
|
||||
# W504 line break after binary operator
|
||||
ignore = W503,W504
|
||||
# [H106] Do not put vim configuration in source files.
|
||||
# [H203] Use assertIs(Not)None to check for None.
|
||||
# [H204] Use assert(Not)Equal to check for equality.
|
||||
# [H205] Use assert(Greater|Less)(Equal) for comparison.
|
||||
# [H904] Delay string interpolations at logging calls.
|
||||
enable-extensions=H106,H203,H204,H205,H904
|
||||
exclude=.venv,.git,.tox,dist,doc,*egg,build
|
||||
|
Reference in New Issue
Block a user