mirror of
https://github.com/DeaDvey/mathgenerator.git
synced 2025-11-28 06:25:23 +01:00
Add PYTHON variable to Makefile
This commit is contained in:
10
Makefile
10
Makefile
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user