From f74757ab1b579a5543a97bcc60e4be3fb142f1b9 Mon Sep 17 00:00:00 2001 From: Takashi Kajinami Date: Mon, 1 Sep 2025 16:07:59 +0900 Subject: [PATCH] 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 --- tox.ini | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tox.ini b/tox.ini index 445e394..1b5b207 100644 --- a/tox.ini +++ b/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