From 05d2cf812e0113537ed7c6e919d088e59bd2f8ed Mon Sep 17 00:00:00 2001 From: Ilya Sytchev Date: Mon, 28 Oct 2024 17:36:47 -0400 Subject: [PATCH] In pytest turn all warnings into errors, except certain warnings from librosa and its dependencies --- pytest.ini | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 pytest.ini diff --git a/pytest.ini b/pytest.ini new file mode 100644 index 00000000..f2907d2d --- /dev/null +++ b/pytest.ini @@ -0,0 +1,11 @@ +[pytest] +filterwarnings = + error + # Ignore specific DeprecationWarnings from librosa.core.intervals + ignore:path is deprecated.*:DeprecationWarning:librosa\.core\.intervals + # Ignore FutureWarning in forest.sycamore.read_audio + ignore:PySoundFile failed. Trying audioread instead.*:FutureWarning:forest\.sycamore\.read_audio + # Ignore specific DeprecationWarnings from audioread.rawread for aifc, audioop, and sunau + ignore:'aifc' is deprecated and slated for removal in Python 3.13.*:DeprecationWarning:audioread\.rawread + ignore:'audioop' is deprecated and slated for removal in Python 3.13.*:DeprecationWarning:audioread\.rawread + ignore:'sunau' is deprecated and slated for removal in Python 3.13.*:DeprecationWarning:audioread\.rawread