diff --git a/pyproject.toml b/pyproject.toml index 1645db85..68bd00f0 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -191,6 +191,9 @@ filterwarnings = [ "ignore:co_lnotab is deprecated, use co_lines instead.*:DeprecationWarning:zipline.*", "ignore::UserWarning:vectorbt", # VectorBT accessor registration warnings "ignore::FutureWarning:zipline", # Zipline compatibility warnings + # pandas 3.1 Pandas4Warning from exchange_calendars' calendar constructor; pandas attributes + # it to its own module, so the message is what keeps the filter narrow + "ignore:Series.values returning an ndarray that drops timezone:DeprecationWarning:pandas.core.series", ] [tool.ruff] diff --git a/tests/contracts/test_quality_gates.py b/tests/contracts/test_quality_gates.py index 6e89e5dd..1b2ddd23 100644 --- a/tests/contracts/test_quality_gates.py +++ b/tests/contracts/test_quality_gates.py @@ -79,7 +79,7 @@ def test_warning_policy_fails_new_warnings_and_has_no_global_suppression() -> No assert filters[0] == "error" assert "ignore::DeprecationWarning" not in filters assert "ignore::PendingDeprecationWarning" not in filters - assert len(filters) <= 5 + assert len(filters) <= 6 def test_accounting_tolerance_is_an_exact_ulp_bound() -> None: