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: