Добавить Makefile.python
This commit is contained in:
30
Makefile.python
Normal file
30
Makefile.python
Normal 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!"
|
||||||
Reference in New Issue
Block a user