From 0117eb0c081179311a539f08567642e3876c762a Mon Sep 17 00:00:00 2001 From: Stephen Finucane Date: Fri, 1 Aug 2025 11:25:26 +0100 Subject: [PATCH] Re-enable optional hacking checks These are not enabled by default when you enable the group with 'select' Change-Id: Iee191fc778c014acd2d093e1f2107e11cd1e81fd Signed-off-by: Stephen Finucane --- tox.ini | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tox.ini b/tox.ini index d6697460639..c153077318f 100644 --- a/tox.ini +++ b/tox.ini @@ -201,6 +201,12 @@ commands = sphinx-build -W -b linkcheck doc/source doc/build/linkcheck [flake8] # We only enable the hacking (H) and neutron (N) checks select = H,N +# H106: Don't 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 ignore = H405,H701,H702,H703,N530 show-source = true exclude = ./.*,build,dist,doc