From 0c7a7fc40266ca2f5734eef5c93751b08dce47cc Mon Sep 17 00:00:00 2001 From: Flora Date: Thu, 5 Jun 2025 07:08:01 +0200 Subject: [PATCH] Update proto warnings Signed-off-by: Flora --- pyproject.toml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 93d417e..0d06916 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -155,7 +155,15 @@ disable = [ ] [tool.pytest.ini_options] -addopts = "-W=all -Werror -Wdefault::DeprecationWarning -Wdefault::PendingDeprecationWarning -vv" +addopts = "-vv" +filterwarnings = [ + "error", + "once::DeprecationWarning", + "once::PendingDeprecationWarning", + # We use a raw string (single quote) to avoid the need to escape special + # chars as this is a regex + 'ignore:Protobuf gencode version .*exactly one major version older.*:UserWarning', +] testpaths = ["tests", "src"] asyncio_mode = "auto" asyncio_default_fixture_loop_scope = "function"