Skip to content

Commit ba7676c

Browse files
authored
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. -->
1 parent 8b0ea62 commit ba7676c

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Makefile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,10 @@ setup-venv: ## Create virtual environment
7272
install-dependencies: setup-venv ## Install all dependencies including extras
7373
uv sync $(PYTHON_ARG) --all-extras --reinstall
7474

75-
install: install-uv install-dependencies ## Install uv and dependencies
75+
install-hooks: ## Install pre-commit hooks
76+
uv run $(PYTHON_ARG) prek install
77+
78+
install: install-uv install-dependencies install-hooks ## Install uv, dependencies, and pre-commit hooks
7679

7780
# ===============
7881
# Code Validation

0 commit comments

Comments
 (0)