From 8bbeb9f8e63ab1278d1ccd5dbd197133dc055a71 Mon Sep 17 00:00:00 2001 From: Dimitri Papadopoulos <3234522+DimitriPapadopoulos@users.noreply.github.com> Date: Sun, 4 Aug 2024 09:58:39 +0200 Subject: [PATCH] MyPy: enable truthy-bool This catches mistakes in using a value as truthy if it cannot be falsey. --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 1dba38e2b..5d8b689e2 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -90,7 +90,7 @@ exclude = [ [tool.mypy] disallow_untyped_defs = false disallow_incomplete_defs = false -enable_error_code = ["ignore-without-code"] +enable_error_code = ["ignore-without-code", "truthy-bool"] follow_imports = "normal" ignore_missing_imports = true pretty = true