Обновить Makefile.python
This commit is contained in:
@@ -4,22 +4,26 @@ PYTHON := python
|
|||||||
|
|
||||||
.PHONY: setup-pip setup-poetry setup-full full-lint
|
.PHONY: setup-pip setup-poetry setup-full full-lint
|
||||||
|
|
||||||
|
# Установить через pip
|
||||||
setup-pip:
|
setup-pip:
|
||||||
@echo "Installing Python tools via pip..."
|
@echo "Installing Python tools via pip..."
|
||||||
$(PIP) install --upgrade pip
|
$(PIP) install --upgrade pip
|
||||||
$(PIP) install mypy ruff cv --upgrade
|
$(PIP) install mypy ruff cv --upgrade
|
||||||
|
|
||||||
|
# Установить через poetry
|
||||||
setup-poetry:
|
setup-poetry:
|
||||||
@echo "Installing Python tools via poetry..."
|
@echo "Installing Python tools via poetry..."
|
||||||
$(POETRY) install
|
$(POETRY) install
|
||||||
$(POETRY) add --group dev mypy ruff cv
|
$(POETRY) add --group dev mypy ruff cv
|
||||||
|
|
||||||
|
# Установить pip, poetry и все зависимости
|
||||||
setup-full:
|
setup-full:
|
||||||
@echo "Installing pip, poetry and Python tools..."
|
@echo "Installing pip, poetry and Python tools..."
|
||||||
$(PIP) install --upgrade pip
|
$(PIP) install --upgrade pip
|
||||||
$(PIP) install poetry mypy ruff cv --upgrade
|
$(PIP) install poetry mypy ruff cv --upgrade
|
||||||
$(POETRY) install
|
$(POETRY) install
|
||||||
|
|
||||||
|
# Провести все проверки по коду
|
||||||
full-lint:
|
full-lint:
|
||||||
@echo "Running ruff check..."
|
@echo "Running ruff check..."
|
||||||
$(RUFF) check .
|
$(RUFF) check .
|
||||||
|
|||||||
Reference in New Issue
Block a user