Merge "trivial: Enable a couple off-by-default hacking checks"

This commit is contained in:
Zuul 2024-12-20 13:02:38 +00:00 committed by Gerrit Code Review
commit b7c228c234

View File

@ -157,6 +157,14 @@ ignore = H101,H202,H214,H216,H301,H306,H404,H405,H501,W503,W504,E402,E731,E741
exclude = .venv,.tox,dist,*egg
filename = *.py
show-source = True
# Optional, off-by-default checks:
# 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.
# H210: Require autospec, spec, or spec_set in mock.patch/mock.patch.object calls
# H904: Delay string interpolations at logging calls.
enable-extensions = H106,H904
[testenv:bindep]
# Do not install any requirements. We want this to be fast and work even if