From 3f73984f6bee4bcdd11d3772a139542a45fdf6cb Mon Sep 17 00:00:00 2001 From: Markus Opolka Date: Thu, 16 May 2024 10:14:38 +0200 Subject: [PATCH] Change makefile to use python3 - Introduces a variable to override this if necessary --- Makefile | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index 4cb4ed6..d5aa2d5 100644 --- a/Makefile +++ b/Makefile @@ -1,9 +1,11 @@ .PHONY: lint test coverage +PYTHON_PATH?=python3 + lint: - python -m pylint check_http_json.py + $(PYTHON_PATH) -m pylint check_http_json.py test: - python -m unittest discover + $(PYTHON_PATH) -m unittest discover coverage: - python -m coverage run -m unittest discover - python -m coverage report -m --include check_http_json.py + $(PYTHON_PATH) -m coverage run -m unittest discover + $(PYTHON_PATH) -m coverage report -m --include check_http_json.py