Fix ensure-pre-commit step in Makefile

This commit is contained in:
filipstrand 2024-10-10 21:09:55 +02:00
parent faaf905667
commit 48b2a0ceb5

View File

@ -26,6 +26,7 @@ expect-uv:
# assume reasonably pre-commit is a safe dependency given its wide support (e.g. GitHub Actions integration)
.PHONY: ensure-pre-commit
ensure-pre-commit:
@if ! /usr/bin/which -s pre-commit; then \
echo "pre-commit required for submitting commits before pull requests. Using uv tool to install pre-commit."; \
uv tool install pre-commit; \