Skip to content

Commit e9ac3dc

Browse files
Merge pull request #43 from TemoaProject/pre-commit-ci-update-config
2 parents 04253e8 + 95b662a commit e9ac3dc

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

.pre-commit-config.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
repos:
22
- repo: https://github.com/astral-sh/uv-pre-commit
3-
rev: 0.9.16
3+
rev: 0.10.9
44
hooks:
55
# Dependency management
66
- id: uv-lock
@@ -23,7 +23,7 @@ repos:
2323

2424
# Python Linting & Formatting with Ruff
2525
- repo: https://github.com/astral-sh/ruff-pre-commit
26-
rev: v0.14.8
26+
rev: v0.15.5
2727
hooks:
2828
- id: ruff
2929
name: ruff (linter)
@@ -33,7 +33,7 @@ repos:
3333

3434
# Type checking with MyPy
3535
- repo: https://github.com/pre-commit/mirrors-mypy
36-
rev: v1.19.0
36+
rev: v1.19.1
3737
hooks:
3838
- id: mypy
3939
args: ["--config-file", "pyproject.toml"]

src/datamanager/__main__.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -730,9 +730,9 @@ def _prune_versions_interactive(ctx: typer.Context) -> None:
730730

731731
keep_str = questionary.text(
732732
"How many of the most recent versions do you want to keep?",
733-
validate=lambda text: text.isdigit()
734-
and int(text) > 0
735-
or "Please enter a positive number.",
733+
validate=lambda text: (
734+
text.isdigit() and int(text) > 0 or "Please enter a positive number."
735+
),
736736
).ask()
737737

738738
if keep_str is None:

0 commit comments

Comments
 (0)