Skip to content

Commit 23f5928

Browse files
Skip DeprecationWarnings
We use old `protobuf` runtime APIs. Ref #410.
1 parent a4bcde0 commit 23f5928

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

pyproject.toml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,8 +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-
filterwarnings = ["error"]
112+
# Turn all warnings into errors,
113+
# except DeprecationWarnings (which we knowingly tolerate due to using old `protobuf` APIs).
114+
filterwarnings = ["error", "ignore::DeprecationWarning"]
114115

115116
[tool.mypy]
116117
mypy_path = "gen"

0 commit comments

Comments
 (0)