filter warnings for nicer test output (#13739)

This commit is contained in:
George Hotz
2025-12-17 13:25:27 -04:00
committed by GitHub
parent b013244c38
commit bc78cf1197

View File

@@ -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