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:
Takashi Kajinami
2025-09-01 16:07:59 +09:00
parent 89f1235626
commit f74757ab1b

View File

@@ -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