diff --git a/pyproject.toml b/pyproject.toml index 555300c803..208ba369cc 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -148,6 +148,24 @@ timeout = 300 timeout_method = "thread" timeout_func_only = true testpaths = ["test"] +filterwarnings = [ + # Ignore SWIG warnings from importlib + "ignore:builtin type SwigPy.*has no __module__ attribute:DeprecationWarning", + "ignore:builtin type swigvarlink has no __module__ attribute:DeprecationWarning", + # Ignore torch.distributed deprecation warning + "ignore:.*torch.distributed.reduce_op.*is deprecated:FutureWarning", + # Ignore numpy warnings from transcendental tests (testing edge cases) + "ignore:invalid value encountered in log2:RuntimeWarning", + "ignore:overflow encountered in cast:RuntimeWarning", + "ignore:divide by zero encountered in log2:RuntimeWarning", + # Ignore multiprocessing fork warning (known pytest-xdist issue) + "ignore:.*multi-threaded, use of fork.*may lead to deadlocks:DeprecationWarning", + # Ignore torch tar extraction warning + "ignore:.*Python 3.14 will.*filter extracted tar archives:DeprecationWarning", + # Ignore audio library warnings (Python 3.13 removed aifc and sunau) + "ignore:aifc was removed in Python 3.13.*:DeprecationWarning", + "ignore:sunau was removed in Python 3.13.*:DeprecationWarning", +] [tool.ruff] preview = true