diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index b1c7080..7b4f0f1 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,6 +1,6 @@ repos: - repo: https://github.com/astral-sh/uv-pre-commit - rev: 0.9.16 + rev: 0.10.0 hooks: # Dependency management - id: uv-lock @@ -23,7 +23,7 @@ repos: # Python Linting & Formatting with Ruff - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.14.8 + rev: v0.15.0 hooks: - id: ruff name: ruff (linter) @@ -33,7 +33,7 @@ repos: # Type checking with MyPy - repo: https://github.com/pre-commit/mirrors-mypy - rev: v1.19.0 + rev: v1.19.1 hooks: - id: mypy args: ["--config-file", "pyproject.toml"] diff --git a/src/datamanager/__main__.py b/src/datamanager/__main__.py index 23ea590..5347563 100644 --- a/src/datamanager/__main__.py +++ b/src/datamanager/__main__.py @@ -730,9 +730,9 @@ def _prune_versions_interactive(ctx: typer.Context) -> None: keep_str = questionary.text( "How many of the most recent versions do you want to keep?", - validate=lambda text: text.isdigit() - and int(text) > 0 - or "Please enter a positive number.", + validate=lambda text: ( + text.isdigit() and int(text) > 0 or "Please enter a positive number." + ), ).ask() if keep_str is None: