From d67a852ae8e153db8b9179458272f46c89a4c0f0 Mon Sep 17 00:00:00 2001 From: Ian Fijolek Date: Thu, 26 Oct 2023 14:56:42 -0700 Subject: [PATCH] Add test hooks with try-repo --- Makefile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 7979b7c..415f6b5 100644 --- a/Makefile +++ b/Makefile @@ -2,7 +2,7 @@ all: check test -test: test-negative test-positive +test: test-negative test-positive test-hooks .PHONY: test-positive test-positive: @@ -16,6 +16,10 @@ test-negative: @echo "Check multiple files. Should error." ./compose-check.sh tests/docker-compose* && { echo 'fail'; exit 1; } || echo 'ok' +.PHONY: test-hooks +test-hooks: + pre-commit try-repo . --all-files + # Installs pre-commit hooks .PHONY: install-hooks install-hooks: