From ec520e64277f5db530f960f49b91f6563387b24f Mon Sep 17 00:00:00 2001 From: Willem Jiang Date: Sun, 14 Jun 2026 11:56:38 +0800 Subject: [PATCH] fix(makefile):fix the per-commit hooks installation (#3569) Install pre-commit as a stable uv tool. Avoid `uv run --with pre-commit`: that runs from a throwaway temp env whose Python gets baked into .git/hooks/pre-commit and is gone by the next commit, leaving the hook broken. A tool install bakes a permanent path. --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 7fdcbc7f4..8d2db4468 100644 --- a/Makefile +++ b/Makefile @@ -76,7 +76,8 @@ install: @echo "Installing frontend dependencies..." @cd frontend && pnpm install @echo "Installing pre-commit hooks..." - @$(BACKEND_UV_RUN) --with pre-commit pre-commit install + @uv tool install pre-commit + @pre-commit install --overwrite @echo "✓ All dependencies installed" @echo "" @echo "=========================================="