From a4bcde082dced254128da77f554731f33b5e758c Mon Sep 17 00:00:00 2001 From: Stefan VanBuren Date: Thu, 5 Feb 2026 11:23:35 -0500 Subject: [PATCH 1/2] Convert pytest warnings into errors Just a ratchet to ensure we don't inadvertently miss warnings in CI output. Similar to connect-python: connectrpc/connect-python#118 --- pyproject.toml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pyproject.toml b/pyproject.toml index 270c428..dab0d30 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -109,6 +109,8 @@ ban-relative-imports = "all" strict = true # restrict testpaths to speed up test discovery testpaths = ["test"] +# Turn all warnings into errors +filterwarnings = ["error"] [tool.mypy] mypy_path = "gen" From 23f592805eb762d1dcb410a25c7f110f61fde500 Mon Sep 17 00:00:00 2001 From: Stefan VanBuren Date: Thu, 5 Feb 2026 11:37:12 -0500 Subject: [PATCH 2/2] Skip DeprecationWarnings We use old `protobuf` runtime APIs. Ref #410. --- pyproject.toml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index dab0d30..884a0e5 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -109,8 +109,9 @@ ban-relative-imports = "all" strict = true # restrict testpaths to speed up test discovery testpaths = ["test"] -# Turn all warnings into errors -filterwarnings = ["error"] +# Turn all warnings into errors, +# except DeprecationWarnings (which we knowingly tolerate due to using old `protobuf` APIs). +filterwarnings = ["error", "ignore::DeprecationWarning"] [tool.mypy] mypy_path = "gen"