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