From 1ae17a55d3ef52efc38a71a3bcfc83bcbe5c07e7 Mon Sep 17 00:00:00 2001 From: "Patrick J. Roddy" Date: Fri, 17 Nov 2023 16:18:04 +0000 Subject: [PATCH] Enable `strict` and subtract options If you weren't aware this achieves the same effect, and a bit easier to keep up-to-date https://mypy.readthedocs.io/en/stable/existing_code.html#introduce-stricter-options --- pyproject.toml | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 705b465..dea0fd6 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -47,19 +47,8 @@ convention = "numpy" [tool.mypy] python_version = "3.9" # Block below are checks that form part of mypy 'strict' mode -warn_unused_configs = true -warn_redundant_casts = true -warn_unused_ignores = true -strict_equality = true -strict_concatenate = true -check_untyped_defs = true +strict = true disallow_subclassing_any = false # TODO: fix -disallow_untyped_decorators = true -disallow_any_generics = true -disallow_untyped_calls = true -disallow_incomplete_defs = true -disallow_untyped_defs = true -no_implicit_reexport = true warn_return_any = false # TODO: fix ignore_missing_imports = true