From 9da2d0b70363911386c5fa4ecf57ecda55b15a86 Mon Sep 17 00:00:00 2001 From: Alexander Hess Date: Tue, 1 Dec 2026 13:11:46 +0100 Subject: [PATCH] Enable the "truthy-bool" error code --- pyproject.toml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pyproject.toml b/pyproject.toml index 0373cb1..d8f4be7 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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