Добавить Makefile.python

This commit is contained in:
2025-10-31 13:07:56 +00:00
parent e1e0e4ddcb
commit fe53caaba7

30
Makefile.python Normal file
View File

@@ -0,0 +1,30 @@
PIP := pip
POETRY := poetry
PYTHON := python
.PHONY: setup-pip setup-poetry setup-full full-lint
setup-pip:
@echo "Installing Python tools via pip..."
$(PIP) install --upgrade pip
$(PIP) install mypy ruff cv --upgrade
setup-poetry:
@echo "Installing Python tools via poetry..."
$(POETRY) install
$(POETRY) add --group dev mypy ruff cv
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!"