Fix duplicated checks to enforce usage of assertIs(Not)None

H203 and N536 are equivalent. Use the built-in one from hacking.

Change-Id: I04a9ce41539ead71f8df0510c07ab2505ab7db3f
Signed-off-by: Takashi Kajinami <kajinamit@oss.nttdata.com>
This commit is contained in:
Takashi Kajinami 2026-01-06 00:03:18 +09:00
parent 185b5ffe2b
commit e1f95eea4a

View file

@ -238,8 +238,7 @@ select = H,N
# N532: Validate that LOG.warning is used instead of LOG.warn
# N534: Exception messages should be translated
# N535: Usage of Python eventlet module not allowed
# N536: Use assertIsNone
enable-extensions = H106,H203,H204,H205,H904,N521,N524,N529,N532,N534,N535,N536
enable-extensions = H106,H203,H204,H205,H904,N521,N524,N529,N532,N534,N535
# H405: multi line docstring summary not separated with an empty line
# N530: Direct neutron imports not allowed
ignore = H405,N530