From 4e1a2dbe7cf9bfba200e75ca7571fc7d6b155424 Mon Sep 17 00:00:00 2001 From: Stefan VanBuren Date: Thu, 5 Feb 2026 11:22:11 -0500 Subject: [PATCH] Move pytest warning enable into pyproject.toml Wasn't sure on the syntax for this before, so just went with the CLI invocation. I think we just want this (by default) on any `pytest` invocation. Signed-off-by: Stefan VanBuren --- justfile | 2 +- pyproject.toml | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/justfile b/justfile index aec1d14..cc501a1 100644 --- a/justfile +++ b/justfile @@ -21,7 +21,7 @@ typecheck: # Run unit tests test *args: - uv run pytest -W error {{ args }} + uv run pytest {{ args }} # Run lint, typecheck and test check: lint typecheck test diff --git a/pyproject.toml b/pyproject.toml index ad206fe..99755f0 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -82,6 +82,8 @@ module-name = "connectrpc" strict = true testpaths = ["test"] timeout = "1800" # 30 min +# Turn all warnings into errors +filterwarnings = ["error"] [tool.ruff.format] skip-magic-trailing-comma = true