Enable the "truthy-iterable" error code

This commit is contained in:
Alexander Hess 2026-12-01 13:11:47 +01:00
commit 883a3ab8cc
Signed by: alexander
GPG key ID: B46EDB4DFC26805D

View file

@ -482,6 +482,8 @@ enable_error_code = [
"redundant-expr", "redundant-expr",
# Report truthiness checks on objects that are always true # Report truthiness checks on objects that are always true
"truthy-bool", "truthy-bool",
# Report truthiness checks on `Iterable`s that are always true
"truthy-iterable",
] ]
# Check further edge cases that are rarely an issue in practice # Check further edge cases that are rarely an issue in practice