-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
33 lines (23 loc) · 986 Bytes
/
Makefile
File metadata and controls
33 lines (23 loc) · 986 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
.PHONY: build test lint lint-fix typecheck typegen clean release help
build: ## Build the package
uv run python -m build
test: ## Run unit tests
uv run pytest
lint: ## Run ruff linter + formatter check
uv run ruff check src/ tests/
uv run ruff format --check src/ tests/
lint-fix: ## Auto-fix lint and format issues
uv run ruff check --fix src/ tests/
uv run ruff format src/ tests/
typecheck: ## Run mypy strict type checking
uv run mypy src/
typegen: ## Regenerate Pydantic models from OpenAPI spec
./scripts/typegen.sh
clean: ## Remove build artifacts
rm -rf dist build *.egg-info src/*.egg-info
release: ## Release a new version: make release VERSION=0.1.0
@test -n "$(VERSION)" || (echo "Usage: make release VERSION=x.y.z" && exit 1)
./scripts/release.sh $(VERSION)
help: ## Show this help
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-15s\033[0m %s\n", $$1, $$2}'
.DEFAULT_GOAL := help