diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 09b9d47..a24b392 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -18,7 +18,7 @@ repos: # - id: no-commit-to-branch - repo: https://github.com/pre-commit/mirrors-mypy - rev: 'v1.11.2' + rev: 'v1.12.1' hooks: - id: mypy additional_dependencies: @@ -26,7 +26,7 @@ repos: - pytest - repo: https://github.com/astral-sh/ruff-pre-commit - rev: 'v0.6.9' + rev: 'v0.7.0' hooks: - id: ruff args: [--fix] diff --git a/src/routers/openml/datasets.py b/src/routers/openml/datasets.py index dda2511..a4c79ff 100644 --- a/src/routers/openml/datasets.py +++ b/src/routers/openml/datasets.py @@ -183,7 +183,7 @@ def quality_clause(quality: str, range_: str | None) -> str: {number_classes_filter} {number_missing_values_filter} AND IFNULL(cs.`status`, 'in_preparation') IN ({where_status}) LIMIT {pagination.limit} OFFSET {pagination.offset} - """, # noqa: S608 + """, # I am not sure how to do this correctly without an error from Bandit here. # However, the `status` input is already checked by FastAPI to be from a set # of given options, so no injection is possible (I think). The `current_status`