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.
This commit is contained in:
Willem Jiang
2026-06-14 11:56:38 +08:00
committed by GitHub
parent 0fb2a75bfb
commit ec520e6427
+2 -1
View File
@@ -76,7 +76,8 @@ install:
@echo "Installing frontend dependencies..." @echo "Installing frontend dependencies..."
@cd frontend && pnpm install @cd frontend && pnpm install
@echo "Installing pre-commit hooks..." @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 "✓ All dependencies installed"
@echo "" @echo ""
@echo "==========================================" @echo "=========================================="