diff --git a/tox.ini b/tox.ini index 814d38eb6f..7ddd23ac8b 100644 --- a/tox.ini +++ b/tox.ini @@ -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