From 26b9256dcaca967567f75b28b0720ed22a03cbde Mon Sep 17 00:00:00 2001 From: Adam Dangoor Date: Sun, 15 Feb 2026 12:16:17 +0000 Subject: [PATCH 1/2] Add pyrefly non-exhaustive match as error --- pyproject.toml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pyproject.toml b/pyproject.toml index 2f5a29b7..2dadc4af 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -376,3 +376,6 @@ exclude = [ ".venv" ] [tool.yamlfix] section_whitelines = 1 whitelines = 1 + +[tool.pyrefly] +errors.non-exhaustive-match = "error" From 495fad3cd48a71698a9e0f3518727682fd4505bd Mon Sep 17 00:00:00 2001 From: "pre-commit-ci-lite[bot]" <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com> Date: Sun, 15 Feb 2026 12:20:06 +0000 Subject: [PATCH 2/2] [pre-commit.ci lite] apply automatic fixes --- pyproject.toml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 2dadc4af..ed1e4658 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -302,6 +302,9 @@ plugins = [ "mypy_strict_kwargs", ] +[tool.pyrefly] +errors.non-exhaustive-match = "error" + [tool.pyright] enableTypeIgnoreComments = false reportUnnecessaryTypeIgnoreComment = true @@ -376,6 +379,3 @@ exclude = [ ".venv" ] [tool.yamlfix] section_whitelines = 1 whitelines = 1 - -[tool.pyrefly] -errors.non-exhaustive-match = "error"