Install the prek git hook (#2933)
<!--
Thanks for opening a pull request!
-->
<!-- In the case this PR will resolve an issue, please replace
${GITHUB_ISSUE_ID} below with the actual Github issue id. -->
<!-- Closes #${GITHUB_ISSUE_ID} -->
# Rationale for this change
This PR installs the pre-commit git hook so that `git commit` will
trigger the pre-commit checks
## Are these changes tested?
## Are there any user-facing changes?
<!-- In the case of user-facing changes, please add the changelog label.
-->diff --git a/Makefile b/Makefile
index 8c8e5f4..7e67a98 100644
--- a/Makefile
+++ b/Makefile
@@ -72,7 +72,10 @@
install-dependencies: setup-venv ## Install all dependencies including extras
uv sync $(PYTHON_ARG) --all-extras --reinstall
-install: install-uv install-dependencies ## Install uv and dependencies
+install-hooks: ## Install pre-commit hooks
+ uv run $(PYTHON_ARG) prek install
+
+install: install-uv install-dependencies install-hooks ## Install uv, dependencies, and pre-commit hooks
# ===============
# Code Validation