Use shared makefile de requirements
This commit is contained in:
parent
5753fc34a4
commit
6b7658d5a7
|
@ -2,7 +2,7 @@ all: lint test
|
|||
|
||||
include python.mk
|
||||
|
||||
PIP_INSTALL = -r requirements-dev.txt
|
||||
PIP_INSTALL =
|
||||
PYLINT_ARG = tools
|
||||
MYPY_ARG = .
|
||||
PYTEST_ARG = .
|
||||
|
|
|
@ -8,12 +8,21 @@ CPU_CORES = $(shell nproc)
|
|||
# MYPY_ARG =
|
||||
# PYTEST_ARG =
|
||||
|
||||
SHARED_DEV_REQUIREMENTS = \
|
||||
black \
|
||||
isort \
|
||||
mypy \
|
||||
pylint \
|
||||
pytest \
|
||||
pytest-cov \
|
||||
pytest-xdist
|
||||
|
||||
VENV = venv
|
||||
$(VENV):
|
||||
python3 -m venv $(VENV)
|
||||
source $(VENV)/bin/activate
|
||||
pip install --upgrade pip setuptools wheel
|
||||
pip install $(PIP_INSTALL)
|
||||
pip install $(SHARED_DEV_REQUIREMENTS) $(PIP_INSTALL)
|
||||
|
||||
.PHONY: .format
|
||||
.format: $(VENV)
|
||||
|
|
|
@ -1,4 +0,0 @@
|
|||
mypy
|
||||
pylint
|
||||
pytest
|
||||
pytest-xdist
|
Loading…
Reference in New Issue