From 27ebdc4ec3c851dde15fb257555bdf03ae594f25 Mon Sep 17 00:00:00 2001 From: Dave Pearson Date: Wed, 1 Mar 2023 12:44:51 +0000 Subject: [PATCH] Add a Makefile target for installing pre-commit hooks Any time I cause my venv to be rebuilt, I need to remember to do this, and I always have to search my shell history to remind myself what the command is. That feels like it deserves to go into the Makefile. --- Makefile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Makefile b/Makefile index de1bea195..4b4000e7b 100644 --- a/Makefile +++ b/Makefile @@ -76,3 +76,7 @@ setup: .PHONY: update update: poetry update + +.PHONY: install-pre-commit +install-pre-commit: + $(run) pre-commit install