2026-06-22 23:25:42 +02:00
|
|
|
.DEFAULT_GOAL := help
|
|
|
|
|
|
2026-06-23 16:52:29 +02:00
|
|
|
.PHONY: help setup install test lint format build check cli-version smoke-remote
|
2026-06-22 23:25:42 +02:00
|
|
|
|
|
|
|
|
help: ## List available make targets
|
|
|
|
|
@awk 'BEGIN {FS = ":.*## "}; /^[a-zA-Z0-9_.-]+:.*## / {printf " %-16s %s\n", $$1, $$2}' $(MAKEFILE_LIST)
|
|
|
|
|
|
|
|
|
|
setup: ## Sync dependencies into .venv
|
|
|
|
|
uv sync --all-groups
|
|
|
|
|
|
2026-06-23 13:55:38 +02:00
|
|
|
install: ## Install sandboxer CLI to ~/.local/bin (editable)
|
|
|
|
|
uv tool install -e . --force
|
|
|
|
|
|
2026-06-22 23:25:42 +02:00
|
|
|
test: ## Run the test suite
|
|
|
|
|
uv run pytest
|
|
|
|
|
|
|
|
|
|
lint: ## Run ruff lint checks
|
|
|
|
|
uv run ruff check .
|
|
|
|
|
|
|
|
|
|
format: ## Auto-format with ruff
|
|
|
|
|
uv run ruff format .
|
|
|
|
|
|
|
|
|
|
build: ## Build wheel and sdist
|
|
|
|
|
uv build
|
|
|
|
|
|
|
|
|
|
check: lint test ## Run lint and tests (CI gate)
|
|
|
|
|
|
|
|
|
|
cli-version: ## Print CLI version (smoke test for entry point)
|
2026-06-23 16:52:29 +02:00
|
|
|
uv run sandboxer version
|
|
|
|
|
|
|
|
|
|
smoke-remote: ## T10 remote create/destroy smoke (needs SANDBOXER_HOST)
|
|
|
|
|
./scripts/smoke-compose-e2e.sh
|