Skip to content

Commit

Permalink
Installs pre-commit as part of the toolchain (#71)
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisguidry authored Sep 6, 2024
1 parent 91f6c2e commit 4addfea
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 5 deletions.
1 change: 1 addition & 0 deletions .mise.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,4 @@ kubectl = '1.31'
kustomize = '5.3.0'
setup-envtest = '0.17.0'
yamllint = '1.35.1'
pre-commit = '3.8.0'
16 changes: 11 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,19 @@ ENVTEST ?= setup-envtest
GOLANGCI_LINT ?= golangci-lint
GINKGO ?= ginkgo

.PHONY: tools
tools:
.PHONY: all
all: tools build

.PHONY: mise
mise:
@mise install --yes

.git/hooks/pre-commit:
@pre-commit install

.PHONY: tools
tools: mise .git/hooks/pre-commit

.PHONY: tools-list
tools-list:
@mise list --current
Expand All @@ -37,9 +46,6 @@ tools-list:
SHELL = /usr/bin/env bash -o pipefail
.SHELLFLAGS = -ec

.PHONY: all
all: build

##@ General

# The help target prints out all targets with their descriptions organized
Expand Down

0 comments on commit 4addfea

Please sign in to comment.