From 6794b039d2bd947c4e7f3b1062323bd44ca0dced Mon Sep 17 00:00:00 2001 From: "Sean T. Allen" Date: Tue, 29 Aug 2023 22:48:13 +0000 Subject: [PATCH] Fix broken `make pylint` We now stop if any linting fails thereby failing the job if any fail. Previously the exit code for the job would be "0" if the last linting succeeded. --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 98720a7..2596932 100644 --- a/Makefile +++ b/Makefile @@ -26,7 +26,7 @@ push: build pylint: build $(PYTHON_COMMANDS) $(foreach file, $(notdir $(PYTHON_COMMANDS)), \ echo "Linting $(file)"; \ - docker run --entrypoint pylint --rm "ghcr.io/${IMAGE}:latest" /commands/$(file); \ + docker run --entrypoint pylint --rm "ghcr.io/${IMAGE}:latest" /commands/$(file) || exit 1; \ ) .PHONY: push