From fe53caaba71cb1c6d519568201ebaf6f7125517e Mon Sep 17 00:00:00 2001 From: CREATIVE_tg1 Date: Fri, 31 Oct 2025 13:07:56 +0000 Subject: [PATCH] =?UTF-8?q?=D0=94=D0=BE=D0=B1=D0=B0=D0=B2=D0=B8=D1=82?= =?UTF-8?q?=D1=8C=20Makefile.python?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Makefile.python | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 Makefile.python diff --git a/Makefile.python b/Makefile.python new file mode 100644 index 0000000..dec3160 --- /dev/null +++ b/Makefile.python @@ -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!" \ No newline at end of file