diff --git a/tools/Makefile b/tools/Makefile index 578884c69..dd674fb08 100644 --- a/tools/Makefile +++ b/tools/Makefile @@ -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 = . diff --git a/tools/python.mk b/tools/python.mk index d5117d1fa..db8d5be5f 100644 --- a/tools/python.mk +++ b/tools/python.mk @@ -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) diff --git a/tools/requirements-dev.txt b/tools/requirements-dev.txt deleted file mode 100644 index cda4c0a74..000000000 --- a/tools/requirements-dev.txt +++ /dev/null @@ -1,4 +0,0 @@ -mypy -pylint -pytest -pytest-xdist