Files
wehub-resource-sync d88fd01084
CI / test (3.10) (push) Failing after 1s
CI / test (3.12) (push) Failing after 0s
CI / skillgen-check (push) Failing after 0s
CI / security-scan (push) Failing after 0s
chore: import upstream snapshot with attribution
2026-07-13 12:09:14 +08:00

21 lines
712 B
Python

from __future__ import annotations
from typing import Any
import pytest
_ANALYZE_WARNING_FILTERS = (
"ignore:Tensorflow not installed; ParametricUMAP will be unavailable:ImportWarning:umap",
"ignore:Please import `random` from the `scipy\\.sparse` namespace.*:"
"DeprecationWarning:hyppo\\.independence\\.hhg",
"ignore:The keyword argument 'nopython=False' was supplied.*:Warning:numba\\.core\\.decorators",
)
def pytest_collection_modifyitems(items: list[Any]) -> None:
for item in items:
if item.path.name != "test_analyze.py":
continue
for warning_filter in _ANALYZE_WARNING_FILTERS:
item.add_marker(pytest.mark.filterwarnings(warning_filter))