Skip to content

Commit b83290a

Browse files
authored
build: treat warnings as errors (#228)
* build: treat warnings as errors * ignore warnings which only appear in 3.7/3.8 * ignore warnings which only appear in 3.7/3.8
1 parent 95a4346 commit b83290a

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

pytest.ini

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
[pytest]
2+
filterwarnings =
3+
# treat all warnings as errors
4+
error
5+
# Remove once support for python 3.7 and 3.8 is dropped
6+
# Ignore warnings from older versions of pandas which still have python 3.7/3.8 support
7+
ignore:.*distutils Version classes are deprecated:DeprecationWarning
8+
ignore:.*resolve package from __spec__ or __package__, falling back on __name__ and __path__:ImportWarning
9+
# Remove once https://github.com/dateutil/dateutil/issues/1314 is fixed
10+
# dateutil is a dependency of pandas
11+
ignore:datetime.datetime.utcfromtimestamp\(\) is deprecated:DeprecationWarning:dateutil.tz.tz
12+
# Remove once https://github.com/googleapis/python-db-dtypes-pandas/issues/227 is fixed
13+
ignore:.*any.*with datetime64 dtypes is deprecated and will raise in a future version:FutureWarning
14+
ignore:.*all.*with datetime64 dtypes is deprecated and will raise in a future version:FutureWarning

0 commit comments

Comments
 (0)