Enable the "truthy-bool" error code

This commit is contained in:
Alexander Hess 2026-12-01 13:11:46 +01:00
commit 9da2d0b703
Signed by: alexander
GPG key ID: B46EDB4DFC26805D

View file

@ -480,6 +480,8 @@ enable_error_code = [
"possibly-undefined",
# Report conditions that are always true or always false
"redundant-expr",
# Report truthiness checks on objects that are always true
"truthy-bool",
]
# Check further edge cases that are rarely an issue in practice