From 9bbdcf5c39351bfb0ff21971d6f5f591ac96f95a Mon Sep 17 00:00:00 2001 From: Jan Lindemann Date: Thu, 23 Jul 2026 21:55:33 +0200 Subject: [PATCH] pyproject.toml: Simplify mypy config using strict mode Remove 8 redundant mypy settings that are already enabled by strict mode: warn_redundant_casts, strict_equality, disallow_any_generics, warn_unused_ignores, disallow_untyped_calls, warn_return_any, disallow_incomplete_defs, disallow_untyped_defs. Keep warn_unreachable explicitly since it's not part of strict mode. Also remove the duplicate exhaustive-match entry from enable_error_code. 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 | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) diff --git a/conf/templates/pyproject.toml b/conf/templates/pyproject.toml index 71dc5fa7..600f0c75 100644 --- a/conf/templates/pyproject.toml +++ b/conf/templates/pyproject.toml @@ -2,24 +2,10 @@ {mypypath} - warn_redundant_casts = true - - strict_equality = true - - disallow_any_generics = true - - warn_unused_ignores = true + strict = true warn_unreachable = true - disallow_untyped_calls = true - - warn_return_any = true - - disallow_incomplete_defs = true - - disallow_untyped_defs = true - enable_error_code = [ "explicit-override", "ignore-without-code",