Skip to content

Commit 701afcc

Browse files
authored
build: treat warnings as errors (#803)
1 parent 8d83ea5 commit 701afcc

1 file changed

Lines changed: 16 additions & 0 deletions

File tree

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
[pytest]
2+
filterwarnings =
3+
# treat all warnings as errors
4+
error
5+
# Remove once https://github.com/protocolbuffers/protobuf/issues/12186 is fixed
6+
ignore:.*custom tp_new.*in Python 3.14:DeprecationWarning
7+
# Remove once https://github.com/googleapis/python-api-common-protos/pull/187/files is merged
8+
ignore:.*pkg_resources.declare_namespace:DeprecationWarning
9+
ignore:.*pkg_resources is deprecated as an API:DeprecationWarning
10+
# Remove once https://github.com/googleapis/python-firestore/issues/804 is fixed
11+
ignore:.*Detected filter using positional arguments:UserWarning
12+
# Remove once https://github.com/googleapis/python-firestore/pull/716 is merged
13+
ignore:datetime.datetime.utcfromtimestamp\(\) is deprecated:DeprecationWarning
14+
ignore:datetime.datetime.utcnow\(\) is deprecated:DeprecationWarning
15+
# Remove once https://github.com/grpc/grpc/issues/35086 is fixed
16+
ignore:There is no current event loop:DeprecationWarning:grpc.aio._channel

0 commit comments

Comments
 (0)