Skip to content

Commit 4e1a2db

Browse files
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 <svanburen@buf.build>
1 parent 7d18f4e commit 4e1a2db

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

justfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ typecheck:
2121

2222
# Run unit tests
2323
test *args:
24-
uv run pytest -W error {{ args }}
24+
uv run pytest {{ args }}
2525

2626
# Run lint, typecheck and test
2727
check: lint typecheck test

pyproject.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,8 @@ module-name = "connectrpc"
8282
strict = true
8383
testpaths = ["test"]
8484
timeout = "1800" # 30 min
85+
# Turn all warnings into errors
86+
filterwarnings = ["error"]
8587

8688
[tool.ruff.format]
8789
skip-magic-trailing-comma = true

0 commit comments

Comments
 (0)