Skip to content

Commit

Permalink
In pytest turn all warnings into errors, except certain warnings from…
Browse files Browse the repository at this point in the history
… librosa and its dependencies
  • Loading branch information
hackdna committed Oct 28, 2024
1 parent 8ef5ada commit 05d2cf8
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions pytest.ini
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 05d2cf8

Please sign in to comment.