Skip to content

Commit e492f8d

Browse files
committed
build: 🔨 add a "install pre-commit" justfile recipe
1 parent 8f28ed3 commit e492f8d

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

justfile

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,14 @@
22
just --list --unsorted
33

44
# Run all build-related recipes in the justfile
5-
run-all: install-deps format-python check-python check-unused test-python check-security check-spelling check-commits build-website
5+
run-all: install-deps install-precommit format-python check-python check-unused test-python check-security check-spelling check-commits build-website
6+
7+
# Install the pre-commit hooks
8+
install-precommit:
9+
# Install pre-commit hooks
10+
uvx pre-commit install
11+
# Update versions of pre-commit hooks
12+
uvx pre-commit autoupdate
613

714
# Install Python package dependencies
815
install-deps:
@@ -73,4 +80,5 @@ check-unused:
7380
# - 100 %: function/method/class argument, unreachable code
7481
# - 90 %: import
7582
# - 60 %: attribute, class, function, method, property, variable
76-
uv run vulture src/ tests/
83+
# Create an allowlist with `vulture --make-allowlist`
84+
uv run vulture src/ tests/ **/vulture-allowlist.py

0 commit comments

Comments
 (0)