From fef268321a9cf0924fc4facb33b4002046e7fd36 Mon Sep 17 00:00:00 2001 From: Alexander Hess Date: Tue, 1 Dec 2026 13:11:45 +0100 Subject: [PATCH] Enable the "redundant-expr" error code --- pyproject.toml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pyproject.toml b/pyproject.toml index 0d943dd..0373cb1 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -478,6 +478,8 @@ enable_error_code = [ "mutable-override", # Report variables that may be used before they are assigned "possibly-undefined", + # Report conditions that are always true or always false + "redundant-expr", ] # Check further edge cases that are rarely an issue in practice