diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 24c6510..c9ba3ff 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -26,7 +26,7 @@ repos: - pytest - repo: https://github.com/astral-sh/ruff-pre-commit - rev: 'v0.14.14' + rev: 'v0.15.1' hooks: - id: ruff args: [--fix] diff --git a/tests/routers/openml/datasets_list_datasets_test.py b/tests/routers/openml/datasets_list_datasets_test.py index e1ff17b..7aabb86 100644 --- a/tests/routers/openml/datasets_list_datasets_test.py +++ b/tests/routers/openml/datasets_list_datasets_test.py @@ -262,7 +262,7 @@ def test_list_data_identical( # Pagination parameters are nested in the new query style # The old style has no `limit` by default, so we mimic this with a high default - new_style = kwargs | {"pagination": {"limit": limit if limit else 1_000_000}} + new_style = kwargs | {"pagination": {"limit": limit or 1_000_000}} if offset is not None: new_style["pagination"]["offset"] = offset