From 2ea6e7727fb3d7773673d435ab137c3220659e3e Mon Sep 17 00:00:00 2001 From: geruh Date: Fri, 30 Jan 2026 12:59:16 -0800 Subject: [PATCH] fix: skip pre-commit hook install with running during release --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 7e67a981f7..e0e120cb16 100644 --- a/Makefile +++ b/Makefile @@ -72,8 +72,8 @@ setup-venv: ## Create virtual environment install-dependencies: setup-venv ## Install all dependencies including extras uv sync $(PYTHON_ARG) --all-extras --reinstall -install-hooks: ## Install pre-commit hooks - uv run $(PYTHON_ARG) prek install +install-hooks: ## Install pre-commit hooks (skipped outside git repo, e.g. release tarballs) + @if [ -d .git ]; then uv run $(PYTHON_ARG) prek install; fi install: install-uv install-dependencies install-hooks ## Install uv, dependencies, and pre-commit hooks