Files
makefile-templates/Makefile.python

34 lines
898 B
Makefile

PIP := pip
POETRY := poetry
PYTHON := python
.PHONY: setup-pip setup-poetry setup-full full-lint
# Установить через pip
setup-pip:
@echo "Installing Python tools via pip..."
$(PIP) install --upgrade pip
$(PIP) install mypy ruff cv --upgrade
# Установить через poetry
setup-poetry:
@echo "Installing Python tools via poetry..."
$(POETRY) install
$(POETRY) add --group dev mypy ruff cv
# Установить pip, poetry и все зависимости
setup-full:
@echo "Installing pip, poetry and Python tools..."
$(PIP) install --upgrade pip
$(PIP) install poetry mypy ruff cv --upgrade
$(POETRY) install
# Провести все проверки по коду
full-lint:
@echo "Running ruff check..."
$(RUFF) check .
@echo "Running ruff format check..."
$(RUFF) format --check .
@echo "Running mypy..."
$(MYPY) .
@echo "All checks completed!"