mirror of
https://github.com/tinygrad/tinygrad.git
synced 2026-01-08 22:48:25 -05:00
filter warnings for nicer test output (#13739)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user