-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
32 lines (22 loc) · 1.18 KB
/
Copy pathMakefile
File metadata and controls
32 lines (22 loc) · 1.18 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
.PHONY: setup lint test demo benchmark viz viz-assets scorer data
# All targets run offline and keyless against committed sample fixtures.
# The exception is `make data`, which reaches the public LBNL file host (needs: uv sync --extra ingest).
setup: ## create the dev environment
uv sync --extra dev
data: ## fetch the public LBNL "Queued Up" xlsx -> data/raw/ (needs: uv sync --extra ingest)
uv run python -m gridqueue.ingest.lbnl
lint: ## ruff check + format --check
uv run ruff check src tests
uv run ruff format --check src tests
test: ## offline, keyless test suite
uv run pytest
demo: ## Phase 0 funnel + first hazard model (<2 min)
uv run python -m gridqueue.demo
benchmark: ## reproduce every published number (set GRIDQUEUE_LBNL_PATH for full data)
uv run python -m gridqueue.benchmark.run
viz: ## render the figures to build/queue.html (set GRIDQUEUE_LBNL_PATH for full maps)
uv run python -m gridqueue.viz.build
viz-assets: ## regenerate the committed README figures (needs: uv sync --extra assets)
uv run python -m gridqueue.viz.export
scorer: ## precompute the model decision surface (set GRIDQUEUE_LBNL_PATH for full data)
uv run python -m gridqueue.viz.scorer