Skip to content

build: treat warnings as errors #228

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Dec 4, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions pytest.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
[pytest]
filterwarnings =
# treat all warnings as errors
error
# Remove once support for python 3.7 and 3.8 is dropped
# Ignore warnings from older versions of pandas which still have python 3.7/3.8 support
ignore:.*distutils Version classes are deprecated:DeprecationWarning
ignore:.*resolve package from __spec__ or __package__, falling back on __name__ and __path__:ImportWarning
# Remove once https://github.com/dateutil/dateutil/issues/1314 is fixed
# dateutil is a dependency of pandas
ignore:datetime.datetime.utcfromtimestamp\(\) is deprecated:DeprecationWarning:dateutil.tz.tz
# Remove once https://github.com/googleapis/python-db-dtypes-pandas/issues/227 is fixed
ignore:.*any.*with datetime64 dtypes is deprecated and will raise in a future version:FutureWarning
ignore:.*all.*with datetime64 dtypes is deprecated and will raise in a future version:FutureWarning