diff --git a/pyproject.toml b/pyproject.toml index a4f15e268c..aca36eb9db 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -325,7 +325,6 @@ ignore = [ "ANN401", "PT011", # TODO: apply this rule "PT030", # TODO: apply this rule - "PT031", # TODO: apply this rule "RET505", "RET506", "RUF005", diff --git a/tests/test_api.py b/tests/test_api.py index 9baca3791b..7a7650002f 100644 --- a/tests/test_api.py +++ b/tests/test_api.py @@ -470,7 +470,7 @@ def test_tree() -> None: g3.create_group("baz") g5 = g3.create_group("qux") g5.create_array("baz", shape=(100,), chunks=(10,), dtype="float64") - with pytest.warns(DeprecationWarning): + with pytest.warns(DeprecationWarning): # noqa: PT031 assert repr(zarr.tree(g1)) == repr(g1.tree()) assert str(zarr.tree(g1)) == str(g1.tree())