From 14a29632885e122091b9b979f393964f7b1da08c Mon Sep 17 00:00:00 2001 From: "stephen.worsley" Date: Thu, 24 Apr 2025 12:01:55 +0100 Subject: [PATCH 1/2] filter warnings, "error" initially --- pyproject.toml | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 63c835e..109c329 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -115,6 +115,7 @@ testpaths = [ "tephi/", ] doctest_optionflags = "NORMALIZE_WHITESPACE ELLIPSIS NUMBER" +filterwarnings = ["error"] [tool.repo-review] # These are a list of the currently failing tests: @@ -124,11 +125,6 @@ ignore = [ # https://learn.scientific-python.org/development/guides/packaging-simple/#PY005 "PY005", # Has tests folder - - # TODO: exceptions that still need investigating are below. Might be fixable, or might become permanent (above): - - # https://learn.scientific-python.org/development/guides/pytest#PP309 - "PP309", # has filterwarnings set ] [tool.ruff] From a96e8edf9528173d7646fd3cde823d95208c3449 Mon Sep 17 00:00:00 2001 From: "stephen.worsley" Date: Thu, 24 Apr 2025 12:10:03 +0100 Subject: [PATCH 2/2] filter warnings "default" --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 109c329..7196b6c 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -115,7 +115,7 @@ testpaths = [ "tephi/", ] doctest_optionflags = "NORMALIZE_WHITESPACE ELLIPSIS NUMBER" -filterwarnings = ["error"] +filterwarnings = ["default"] [tool.repo-review] # These are a list of the currently failing tests: