Skip to content

Commit 7f9865f

Browse files
authored
build: 🔨 add recipe to install pre-commit hooks (#23)
# Description To make it easier to setup the pre-commit hooks in the other repos <!-- Select quick/in-depth as necessary --> No review needed.
1 parent a4fe454 commit 7f9865f

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

justfile

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,15 @@
44
# Run all build-related recipes in the justfile
55
run-all: install-deps format-python check-python check-spelling check-commits
66

7+
# Install the pre-commit hooks
8+
install-precommit:
9+
# Install pre-commit hooks
10+
uvx pre-commit install
11+
# Run pre-commit hooks on all files
12+
uvx pre-commit run --all-files
13+
# Update versions of pre-commit hooks
14+
uvx pre-commit autoupdate
15+
716
# Install Python package dependencies
817
install-deps:
918
uv sync --upgrade --dev --all-extras

0 commit comments

Comments
 (0)