Skip to content

Commit 966d61b

Browse files
committed
build: treat warnings as errors
1 parent 4b77019 commit 966d61b

File tree

3 files changed

+35
-0
lines changed

3 files changed

+35
-0
lines changed

gapic/ads-templates/pytest.ini

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
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 release PR https://github.com/googleapis/proto-plus-python/pull/391 is merged
8+
ignore:datetime.datetime.utcfromtimestamp\(\) is deprecated:DeprecationWarning:proto.datetime_helpers

gapic/templates/pytest.ini

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
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 release PR https://github.com/googleapis/proto-plus-python/pull/391 is merged
8+
ignore:datetime.datetime.utcfromtimestamp\(\) is deprecated:DeprecationWarning:proto.datetime_helpers

pytest.ini

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
[pytest]
2+
filterwarnings =
3+
# treat all warnings as errors
4+
error
5+
# Remove once https://github.com/pytest-dev/pytest-cov/issues/621 is fixed
6+
ignore:.*The --rsyncdir command line argument and rsyncdirs config variable are deprecated:DeprecationWarning
7+
# Remove once https://github.com/protocolbuffers/protobuf/issues/12186 is fixed
8+
ignore:.*custom tp_new.*in Python 3.14:DeprecationWarning
9+
# Remove once release PR https://github.com/googleapis/python-api-common-protos/pull/191 is merged
10+
ignore:.*pkg_resources.declare_namespace:DeprecationWarning
11+
ignore:.*pkg_resources is deprecated as an API:DeprecationWarning
12+
# Remove once release PR https://github.com/googleapis/proto-plus-python/pull/391 is merged
13+
ignore:datetime.datetime.utcfromtimestamp\(\) is deprecated:DeprecationWarning:proto.datetime_helpers
14+
# Remove once release PR https://github.com/googleapis/python-api-core/pull/555 is merged
15+
ignore:datetime.datetime.utcnow\(\) is deprecated:DeprecationWarning:google.api_core.datetime_helpers
16+
# Remove once https://github.com/googleapis/gapic-generator-python/issues/1876 is fized
17+
ignore:pytest-asyncio detected an unclosed event loop when tearing down the event_loop:DeprecationWarning
18+
# Wait until next grpc release newer than 1.59.3 https://github.com/grpc/grpc/releases
19+
ignore:datetime.datetime.utcnow\(\) is deprecated:DeprecationWarning:grpc._channel

0 commit comments

Comments
 (0)