-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
40 lines (31 loc) · 1.02 KB
/
Copy pathMakefile
File metadata and controls
40 lines (31 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
.PHONY: help install test lint fmt typecheck run clean venv
# Default: show help
help:
@echo "smokebench — Make targets"
@echo ""
@echo " make install Install package + dev deps into current venv"
@echo " make venv Create .venv and install everything"
@echo " make test Run pytest"
@echo " make lint Run ruff"
@echo " make fmt Run ruff --fix"
@echo " make typecheck Run mypy (if configured)"
@echo " make run Launch the TUI (smokebench)"
@echo " make clean Remove build artifacts + .venv"
@echo ""
venv:
@bash ./create-venv.sh
install:
pip install -e ".[dev,full]"
test:
pytest -q
lint:
ruff check src/ tests/
fmt:
ruff check --fix src/ tests/
typecheck:
mypy src/smoke_bench --ignore-missing-imports 2>/dev/null || echo "mypy not configured; skipping"
run:
smokebench
clean:
rm -rf .venv build dist *.egg-info .pytest_cache .ruff_cache __pycache__ src/smoke_bench.egg-info
find . -type d -name __pycache__ -exec rm -rf {} + 2>/dev/null || true