Skip to content

Commit

Permalink
fix: use uv tool run for pre-commit if not global
Browse files Browse the repository at this point in the history
  • Loading branch information
lengau committed Dec 13, 2024
1 parent 4918168 commit 8b72e6f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions common.mk
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,11 @@ setup-precommit: install-uv ##- Set up pre-commit hooks in this repository.
ifeq ($(shell which pre-commit),)
uv tool install pre-commit
endif
ifeq ($(shell which pre-commit),)
uv tool run pre-commit install
else
pre-commit install
endif

.PHONY: clean
clean: ## Clean up the development environment
Expand Down

0 comments on commit 8b72e6f

Please sign in to comment.