-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
43 lines (28 loc) · 2.06 KB
/
Copy pathMakefile
File metadata and controls
43 lines (28 loc) · 2.06 KB
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
34
35
36
37
38
39
40
41
42
43
.PHONY: install setup fmt lint check test clean
PYTHON ?= python3
UV ?= uv
# ── Install ──────────────────────────────────────────────────────────────────
install:
$(UV) sync
# ── Setup (first-time contributor) ───────────────────────────────────────────
setup: install
$(UV) run pre-commit install
@echo " ✓ Pre-commit hooks installed"
# ── Format ───────────────────────────────────────────────────────────────────
fmt:
$(UV) run ruff check --select I --fix src/ scripts/ tests/
$(UV) run ruff format src/ scripts/ tests/
# ── Lint ─────────────────────────────────────────────────────────────────────
lint:
$(UV) run ruff check src/ scripts/ tests/
# ── Type-check ───────────────────────────────────────────────────────────────
check:
$(UV) run pyright src/ scripts/ tests/
# ── Test ─────────────────────────────────────────────────────────────────────
test:
$(UV) run pytest
# ── Clean ────────────────────────────────────────────────────────────────────
clean:
rm -rf dist/ build/ .pytest_cache/ .ruff_cache/
find . -type d -name __pycache__ -exec rm -rf {} + 2>/dev/null || true
find . -type d -name "*.egg-info" -exec rm -rf {} + 2>/dev/null || true