From c3ed3fc2a2ec54e489c56b5b07bcfa792956819c Mon Sep 17 00:00:00 2001 From: Michael Adam Date: Fri, 24 Jan 2025 19:28:45 +0100 Subject: [PATCH] build: add make target lint The newly added make target 'lint' runs various linters on the code base. Signed-off-by: Michael Adam --- Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 64ee14c20e41..da2bbbd2a61f 100644 --- a/Makefile +++ b/Makefile @@ -161,9 +161,12 @@ fmt: ## Check formatting of go sources. yamllint: yamllint -c .yamllint deploy/examples/ --no-warnings +.PHONY: lint +lint: yamllint pylint shellcheck vet ## Run various linters + .PHONY: pylint pylint: - pylint $(shell find $(ROOT_DIR) -name '*.py') -E + pylint $(shell find $(ROOT_DIR) -name '*.py') -E .PHONY: shellcheck shellcheck: