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 <jan@janware.com>
This commit is contained in:
parent
fd521cb2a9
commit
9bbdcf5c39
1 changed files with 1 additions and 15 deletions
|
|
@ -2,24 +2,10 @@
|
||||||
|
|
||||||
{mypypath}
|
{mypypath}
|
||||||
|
|
||||||
warn_redundant_casts = true
|
strict = true
|
||||||
|
|
||||||
strict_equality = true
|
|
||||||
|
|
||||||
disallow_any_generics = true
|
|
||||||
|
|
||||||
warn_unused_ignores = true
|
|
||||||
|
|
||||||
warn_unreachable = true
|
warn_unreachable = true
|
||||||
|
|
||||||
disallow_untyped_calls = true
|
|
||||||
|
|
||||||
warn_return_any = true
|
|
||||||
|
|
||||||
disallow_incomplete_defs = true
|
|
||||||
|
|
||||||
disallow_untyped_defs = true
|
|
||||||
|
|
||||||
enable_error_code = [
|
enable_error_code = [
|
||||||
"explicit-override",
|
"explicit-override",
|
||||||
"ignore-without-code",
|
"ignore-without-code",
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue