From adf77ad2df0ff7fab5ad97ee19dd0a4eec42e47a Mon Sep 17 00:00:00 2001 From: William Coe Date: Thu, 29 Oct 2020 14:21:35 +1100 Subject: [PATCH] Makefile: locate pylint on various systems pylint cannot be found on Fedora 33 --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 13dcc35..8bdf85c 100644 --- a/Makefile +++ b/Makefile @@ -6,6 +6,7 @@ all: PYTHON ?= python3 PYTHON_SOURCE_DIRS = rpm_s3_mirror/ tests/ PYTEST_ARG ?= -v +PYLINT=$(shell which pylint 2> /dev/null | which pylint-3) clean: $(RM) -r *.egg-info/ build/ dist/ rpm/ @@ -46,7 +47,7 @@ coverage: $(PYTHON) -m coverage report --show-missing pylint: - pylint --rcfile .pylintrc $(PYTHON_SOURCE_DIRS) + $(PYLINT) --rcfile .pylintrc $(PYTHON_SOURCE_DIRS) flake8: $(PYTHON) -m flake8 --exclude=__init__.py --ignore=E722 --max-line-len=125 $(PYTHON_SOURCE_DIRS)