From 7717694f62978697f7886b7661363785f5d58efd Mon Sep 17 00:00:00 2001 From: Christian Breunig Date: Thu, 4 Apr 2024 20:21:08 +0200 Subject: Makefile: improve "unused-imports" target (cherry picked from commit faa153524f04ebe8ab5f12d7afe6df2a6eb3728a) --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 0868025ae..432de7547 100644 --- a/Makefile +++ b/Makefile @@ -6,8 +6,8 @@ SHIM_DIR := src/shim LIBS := -lzmq CFLAGS := BUILD_ARCH := $(shell dpkg-architecture -q DEB_BUILD_ARCH) - J2LINT := $(shell command -v j2lint 2> /dev/null) +PYLINT_FILES := $(shell git ls-files *.py) config_xml_src = $(wildcard interface-definitions/*.xml.in) config_xml_obj = $(config_xml_src:.xml.in=.xml) @@ -114,7 +114,7 @@ sonar: .PHONY: unused-imports unused-imports: - git ls-files *.py | xargs pylint | grep W0611 + @pylint --disable=all --enable=W0611 $(PYLINT_FILES) deb: dpkg-buildpackage -uc -us -tc -b -- cgit v1.2.3