-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build: treat warnings as errors (#819)
* build: treat warnings as errors * resolve warning Client.dataset is deprecated and will be removed in a future version * See #820 * address warning @pytest.yield_fixture is deprecated. Use @pytest.fixture instead; they are the same. * filter warnings from grpcio * revert * update comment
- Loading branch information
Showing
5 changed files
with
71 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
[pytest] | ||
filterwarnings = | ||
# treat all warnings as errors | ||
error | ||
# Remove once https://github.com/protocolbuffers/protobuf/issues/12186 is fixed | ||
ignore:.*custom tp_new.*in Python 3.14:DeprecationWarning | ||
# Remove once Release PR https://github.com/googleapis/python-api-common-protos/pull/191 is merged | ||
ignore:.*pkg_resources.declare_namespace:DeprecationWarning | ||
ignore:.*pkg_resources is deprecated as an API:DeprecationWarning | ||
# Remove once https://github.com/grpc/grpc/issues/35086 is fixed | ||
ignore:There is no current event loop:DeprecationWarning:grpc.aio._channel | ||
# Remove once release PR https://github.com/googleapis/proto-plus-python/pull/391 is merged | ||
ignore:datetime.datetime.utcfromtimestamp\(\) is deprecated:DeprecationWarning:proto.datetime_helpers | ||
# Remove once release PR https://github.com/googleapis/python-api-core/pull/555 is merged | ||
ignore:datetime.datetime.utcnow\(\) is deprecated:DeprecationWarning:google.api_core.datetime_helpers | ||
# Remove once https://github.com/googleapis/python-logging/issues/818 is fixed | ||
ignore:datetime.datetime.utcfromtimestamp\(\) is deprecated:DeprecationWarning:google.cloud.logging_v2.handlers.transports | ||
ignore:datetime.datetime.utcnow\(\) is deprecated:DeprecationWarning:tests.unit.test__http | ||
ignore:datetime.datetime.utcnow\(\) is deprecated:DeprecationWarning:tests.unit.test_entries | ||
# Remove once https://github.com/googleapis/python-logging/issues/820 is fixed | ||
ignore:.*warn.*is deprecated, use.*warning.*instead:DeprecationWarning | ||
# Remove once a version of grpcio newer than 1.59.3 is released to PyPI | ||
ignore:datetime.datetime.utcnow\(\) is deprecated:DeprecationWarning:grpc._channel |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters