Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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)
Expand All @@ -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"]
Expand Down
6 changes: 3 additions & 3 deletions src/datamanager/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down