Skip to content

Commit 3f73984

Browse files
committed
Change makefile to use python3
- Introduces a variable to override this if necessary
1 parent 09a7ec0 commit 3f73984

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

Makefile

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
.PHONY: lint test coverage
22

3+
PYTHON_PATH?=python3
4+
35
lint:
4-
python -m pylint check_http_json.py
6+
$(PYTHON_PATH) -m pylint check_http_json.py
57
test:
6-
python -m unittest discover
8+
$(PYTHON_PATH) -m unittest discover
79
coverage:
8-
python -m coverage run -m unittest discover
9-
python -m coverage report -m --include check_http_json.py
10+
$(PYTHON_PATH) -m coverage run -m unittest discover
11+
$(PYTHON_PATH) -m coverage report -m --include check_http_json.py

0 commit comments

Comments
 (0)