Skip to content

Commit 83cf8a5

Browse files
authored
build: treat warnings as errors (#464)
* build: treat warnings as errors * silence warning from googleapis-common-protos
1 parent 44c2b14 commit 83cf8a5

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

pytest.ini

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
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/grpc/grpc/issues/35086 is fixed
8+
ignore:There is no current event loop:DeprecationWarning:grpc.aio._channel
9+
# Remove once release PR https://github.com/googleapis/proto-plus-python/pull/391 is merged
10+
ignore:datetime.datetime.utcfromtimestamp\(\) is deprecated:DeprecationWarning:proto.datetime_helpers
11+
# Remove once https://github.com/googleapis/python-api-common-protos/pull/187/files is merged
12+
ignore:.*pkg_resources.declare_namespace:DeprecationWarning
13+
ignore:.*pkg_resources is deprecated as an API:DeprecationWarning

0 commit comments

Comments
 (0)