Use more specific assertion methods
Enable a few optional checks from hacking to enforce this. Change-Id: I2509c908572bbaf3044c175dab0e0462ed19f104 Signed-off-by: Takashi Kajinami <kajinamit@oss.nttdata.com>
This commit is contained in:
7
tox.ini
7
tox.ini
@@ -55,7 +55,10 @@ commands = sphinx-build -a -E -d releasenotes/build/doctrees -b html releasenote
|
||||
[flake8]
|
||||
builtins = _
|
||||
exclude = .venv,.git,.tox,dist,doc,*.egg
|
||||
# [H904] Delay string interpolations at logging calls.
|
||||
enable-extensions=H904
|
||||
# H203: Use assertIs(Not)None to check for None
|
||||
# H204: Use assert(Not)Equal()
|
||||
# H205: Use assert{Greater,Less}[Equal]
|
||||
# H904: Delay string interpolations at logging calls
|
||||
enable-extensions = H203,H204,H205,H904
|
||||
# W504 line break after binary operator
|
||||
ignore = W504
|
||||
|
||||
Reference in New Issue
Block a user