Skip to content

Commit

Permalink
Change makefile to use python3
Browse files Browse the repository at this point in the history
- Introduces a variable to override this if necessary
  • Loading branch information
martialblog committed May 16, 2024
1 parent 09a7ec0 commit 3f73984
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 3f73984

Please sign in to comment.