-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
31 lines (22 loc) · 926 Bytes
/
Copy pathMakefile
File metadata and controls
31 lines (22 loc) · 926 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
.PHONY: help install check lint format typecheck test fix clean
help: ## show this help
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-12s\033[0m %s\n", $$1, $$2}'
install: ## uv sync (install all deps including dev)
uv sync
check: lint typecheck test ## full inner loop (CI runs this)
fix: ## autofix lint + format, then run full check
uv run ruff check --fix src tests
uv run ruff format src tests
$(MAKE) check
lint: ## ruff check (no fix) + format --check
uv run ruff check src tests
uv run ruff format --check src tests
format: ## ruff format (writes)
uv run ruff format src tests
typecheck: ## basedpyright strict
uv run basedpyright src tests
test: ## pytest
uv run pytest
clean: ## remove caches
rm -rf .pytest_cache .ruff_cache .basedpyright .hypothesis .coverage htmlcov dist build
find . -type d -name __pycache__ -exec rm -rf {} +