-
Notifications
You must be signed in to change notification settings - Fork 87
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 (#564)
* build: treat warnings as errors * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * lint * add pytest.ini * add line break * filter warning which appears only in python 3.7 * filter deprecation warning for grpcio-gcp --------- Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
- Loading branch information
1 parent
42e8b6e
commit 46e8789
Showing
2 changed files
with
33 additions
and
8 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,21 @@ | ||
[pytest] | ||
filterwarnings = | ||
# treat all warnings as errors | ||
error | ||
# Remove once https://github.com/pytest-dev/pytest-cov/issues/621 is fixed | ||
ignore:.*The --rsyncdir command line argument and rsyncdirs config variable are deprecated:DeprecationWarning | ||
# Remove once https://github.com/protocolbuffers/protobuf/issues/12186 is fixed | ||
ignore:.*custom tp_new.*in Python 3.14:DeprecationWarning | ||
# Remove once support for python 3.7 is dropped | ||
# This warning only appears when using python 3.7 | ||
ignore:.*Using or importing the ABCs from.*collections:DeprecationWarning | ||
# Remove once support for grpcio-gcp is deprecated | ||
# See https://github.com/googleapis/python-api-core/blob/42e8b6e6f426cab749b34906529e8aaf3f133d75/google/api_core/grpc_helpers.py#L39-L45 | ||
ignore:.*Support for grpcio-gcp is deprecated:DeprecationWarning | ||
# Remove once https://github.com/googleapis/python-api-common-protos/pull/187/files is merged | ||
ignore:.*pkg_resources.declare_namespace:DeprecationWarning | ||
ignore:.*pkg_resources is deprecated as an API:DeprecationWarning | ||
# 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 https://github.com/grpc/grpc/issues/35086 is fixed | ||
ignore:There is no current event loop:DeprecationWarning |
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