Skip to content

Commit d97a356

Browse files
committed
⬆️ Add pre-commit as dev dependency and fix justfile command
1 parent c04ee80 commit d97a356

File tree

3 files changed

+83
-2
lines changed

3 files changed

+83
-2
lines changed

justfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ tag-skip-check version commit: (_assert-legal-version version)
3131
# Update all dependencies
3232
deps-update:
3333
uv sync --upgrade
34-
pre-commit autoupdate -j "$( (uname -s | grep -q Linux && nproc) || (uname -s | grep -q Darwin && sysctl -n hw.ncpu) || echo 1 )"
34+
uv run pre-commit autoupdate -j "$( (uname -s | grep -q Linux && nproc) || (uname -s | grep -q Darwin && sysctl -n hw.ncpu) || echo 1 )"
3535
uvx sync-pre-commit-deps --yaml-mapping 2 --yaml-sequence 4 --yaml-offset 2 .pre-commit-config.yaml || { \
3636
echo "Note: '.pre-commit-config.yaml' changed, and might lost its formatting." \
3737
&& exit 1; \

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,5 @@ requires-python = ">=3.10.9"
66
[dependency-groups]
77
dev = [
88
"copier-template-tester>=2.2.0",
9+
"pre-commit>=4.4.0",
910
]

uv.lock

Lines changed: 81 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)