From cbd6bac84cf12f55639200a6fa1f93b0351b5cc6 Mon Sep 17 00:00:00 2001 From: Jan Lindemann Date: Wed, 22 Jul 2026 22:22:01 +0200 Subject: [PATCH] pyproject.toml: Enable mypy.warn_unused_ignores Add warn_unused_ignores = true to the mypy configuration. This warns when a '# type: ignore' comment has no associated error code, ensuring all type ignores are explicit about which error they suppress. Assisted-by: unsloth/Qwen3.6-35B-A3B-GGUF:IQ4_NL and pi.dev 0.81.1 Signed-off-by: Jan Lindemann --- conf/templates/pyproject.toml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/conf/templates/pyproject.toml b/conf/templates/pyproject.toml index f3b5bd5d..714ea7ab 100644 --- a/conf/templates/pyproject.toml +++ b/conf/templates/pyproject.toml @@ -8,6 +8,8 @@ disallow_any_generics = true + warn_unused_ignores = true + enable_error_code = [ "explicit-override", "ignore-without-code",