Skip to content

Commit 040ef1c

Browse files
Convert pytest warnings into errors (#424)
Just a ratchet to ensure we don't inadvertently miss warnings in CI output. Similar to connect-python: connectrpc/connect-python#118
1 parent 0882f6b commit 040ef1c

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

pyproject.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,9 @@ ban-relative-imports = "all"
109109
strict = true
110110
# restrict testpaths to speed up test discovery
111111
testpaths = ["test"]
112+
# Turn all warnings into errors,
113+
# except DeprecationWarnings (which we knowingly tolerate due to using old `protobuf` APIs).
114+
filterwarnings = ["error", "ignore::DeprecationWarning"]
112115

113116
[tool.mypy]
114117
mypy_path = "gen"

0 commit comments

Comments
 (0)