Add PYTHON variable to Makefile

This commit is contained in:
Yuval Goldberg
2020-10-22 01:37:37 +03:00
parent abddf069c2
commit b1d2453740
2 changed files with 25 additions and 23 deletions

View File

@@ -1,11 +1,15 @@
IGNORE_ERRORS = E501,F401,F403,F405
PKG = mathgenerator
PYTHON ?= python3
deps:
$(PYTHON) -m pip install --user -r dev-requirements.txt
format:
python -m autopep8 --ignore=$(IGNORE_ERRORS) -ir $(PKG)/*
$(PYTHON) -m autopep8 --ignore=$(IGNORE_ERRORS) -ir $(PKG)/*
lint:
python -m flake8 --ignore=$(IGNORE_ERRORS) $(PKG)
$(PYTHON) -m flake8 --ignore=$(IGNORE_ERRORS) $(PKG)
test:
python -m pytest --verbose -s tests
$(PYTHON) -m pytest --verbose -s tests