From de74086743ac52cd9c5ca7534e96ad71f6a97162 Mon Sep 17 00:00:00 2001 From: Anthonios Partheniou Date: Fri, 1 Dec 2023 11:28:52 +0000 Subject: [PATCH 1/3] build: treat warnings as errors --- pytest.ini | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 pytest.ini diff --git a/pytest.ini b/pytest.ini new file mode 100644 index 0000000..9e39380 --- /dev/null +++ b/pytest.ini @@ -0,0 +1,10 @@ +[pytest] +filterwarnings = + # treat all warnings as errors + error + # 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 From 3de0aa60137fb4c66f1296bc23ecbb9343a5a223 Mon Sep 17 00:00:00 2001 From: Anthonios Partheniou Date: Fri, 1 Dec 2023 12:38:38 +0000 Subject: [PATCH 2/3] ignore warnings which only appear in 3.7/3.8 --- pytest.ini | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pytest.ini b/pytest.ini index 9e39380..fd548f9 100644 --- a/pytest.ini +++ b/pytest.ini @@ -2,6 +2,9 @@ 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 # 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 From 59930d7d3b09e77a7e01ac22e6b5b6de82fdf8a6 Mon Sep 17 00:00:00 2001 From: Anthonios Partheniou Date: Sat, 2 Dec 2023 19:08:25 +0000 Subject: [PATCH 3/3] ignore warnings which only appear in 3.7/3.8 --- pytest.ini | 1 + 1 file changed, 1 insertion(+) diff --git a/pytest.ini b/pytest.ini index fd548f9..c58342d 100644 --- a/pytest.ini +++ b/pytest.ini @@ -5,6 +5,7 @@ filterwarnings = # 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