From 26fe5a163022cb2a95bf0f1cdca2184d57697cb6 Mon Sep 17 00:00:00 2001 From: "Luke W. Johnston" Date: Wed, 21 May 2025 22:19:28 +0200 Subject: [PATCH] build: :hammer: add recipe to install pre-commit hooks --- justfile | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/justfile b/justfile index 341a303..f1842f8 100644 --- a/justfile +++ b/justfile @@ -4,6 +4,15 @@ # Run all build-related recipes in the justfile run-all: install-deps format-python check-python check-spelling check-commits +# Install the pre-commit hooks +install-precommit: + # Install pre-commit hooks + uvx pre-commit install + # Run pre-commit hooks on all files + uvx pre-commit run --all-files + # Update versions of pre-commit hooks + uvx pre-commit autoupdate + # Install Python package dependencies install-deps: uv sync --upgrade --dev --all-extras