arcade-mcp/libs/arcade-cli/arcade_cli/templates/full/{{ toolkit_name }}/Makefile
Eric Gustin bbba7aec90
Update arcade new --full (#805)
Monorepo has new linting and formatting preferences. Updated the
`--full` to reflect that.

<!-- CURSOR_SUMMARY -->
---

> [!NOTE]
> **Low Risk**
> Low risk: changes only affect the generated `--full` project template
and CLI help surface (flag is now hidden), plus a patch version bump.
> 
> **Overview**
> Updates `arcade new --full` to be *internal-only* by hiding the flag
and revises the full template to match monorepo conventions
(Ruff/pre-commit versions and hook IDs, `.ruff.toml` now extends the
repo config, `pyproject.toml` formatting/booleans, adds `pytest`
`asyncio_mode`, and removes `pre-commit install` from the template
`Makefile`).
> 
> Adds a regression test ensuring generated full-template files match
these conventions, and bumps the root package version to `1.12.2`.
> 
> <sup>Written by [Cursor
Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit
2c1a285752d67dc4dd1aa8e0b6f25ca2f0a33fa2. This will update automatically
on new commits. Configure
[here](https://cursor.com/dashboard?tab=bugbot).</sup>
<!-- /CURSOR_SUMMARY -->
2026-03-27 14:22:32 -07:00

30 lines
943 B
Makefile

.PHONY: install build test lint dev
TOOLKIT := $(shell basename $(CURDIR))
help: ## Show this help message
@grep -E '^[a-zA-Z_-]+:.*##' $(MAKEFILE_LIST) | awk 'BEGIN {FS = ":.*##"}; {printf " \033[36m%-10s\033[0m %s\n", $$1, $$2}'
install: ## Install dependencies, then overlay any ../.local-overrides
uv sync --all-extras
@if [ -f ../.local-overrides ]; then \
while IFS= read -r pkg || [ -n "$$pkg" ]; do \
case "$$pkg" in \#*|"") continue ;; esac; \
echo "Applying local override: $$pkg"; \
uv pip install -e "$$pkg"; \
done < ../.local-overrides; \
fi
build: ## Build wheel
rm -rf dist
uv build
test: ## Run tests with coverage
uv run pytest -W ignore -v --cov --cov-config=pyproject.toml --cov-report=xml
lint: ## Run linting and type checking
uv run pre-commit run -a
uv run mypy --config-file=pyproject.toml
dev: ## Run toolkit locally as MCP server
ARCADE_WORKER_SECRET=dev uv run arcade_$(TOOLKIT) http