From 8393363f55d6295913e0fc71120a3f6265221bcf Mon Sep 17 00:00:00 2001 From: "ukmo-chris.bunney" Date: Thu, 21 Nov 2024 16:40:06 +0000 Subject: [PATCH] Removed `warn_unreachable=true` from mypy as it is also being ignored in the `disable_error_code` list. Required an ingore entry in repo-review. --- pyproject.toml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 8803d74..0826510 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -66,11 +66,11 @@ disable_error_code = [ "misc", "no-untyped-call", "no-untyped-def", - "unreachable", + "unreachable", # TODO: Uncomment `warn_unreachable` below when fixed ] enable_error_code = ["ignore-without-code", "redundant-expr", "truthy-bool"] strict = true -warn_unreachable = true +# warn_unreachable = true # TODO: Enable once all unreachable code is fixed [tool.numpydoc_validation] checks = [ @@ -136,6 +136,7 @@ ignore = [ # TODO: exceptions that still need investigating are below. # Might be fixable, or might become permanent (above): + "MY103", # Must have warn_unreachable enabled in mypy "PY007", # Supports an easy task runner (nox or tox) "PP309", # Filter warnings specified "PC170", # Uses PyGrep hooks (only needed if rST present)