-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
57 lines (40 loc) · 1.02 KB
/
Makefile
File metadata and controls
57 lines (40 loc) · 1.02 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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
export PATH := $(HOME)/.local/bin:$(PATH)
.PHONY: lint format typecheck test all clean install dev
# ---------- Setup ----------
install:
uv sync
dev:
uv sync --all-extras
uv run pre-commit install
# ---------- Quality ----------
lint:
uv run ruff check .
lint-fix:
uv run ruff check . --fix
format:
uv run ruff format .
format-check:
uv run ruff format . --check
typecheck:
uv run mypy src/
# ---------- Testing ----------
test:
uv run pytest
test-unit:
uv run pytest -m unit
test-integration:
uv run pytest -m integration
test-fast:
uv run pytest --no-cov -q
# ---------- Combined ----------
all: lint format-check typecheck test
check: lint format-check typecheck
# ---------- Run ----------
serve:
uv run uvicorn onboarding_agent.api.app:app --reload --port 8000
cli:
uv run onboarding-agent
# ---------- Clean ----------
clean:
rm -rf .venv .mypy_cache .pytest_cache .ruff_cache .coverage htmlcov dist build *.egg-info __pycache__
find . -type d -name __pycache__ -exec rm -rf {} + 2>/dev/null || true