-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjustfile
More file actions
36 lines (28 loc) · 832 Bytes
/
Copy pathjustfile
File metadata and controls
36 lines (28 loc) · 832 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
32
33
34
35
36
# `just --list` shows recipes. The Python project is managed by uv (uv.lock is committed).
# install dependencies from the lock
setup:
uv sync --frozen
# format (write)
fmt:
uv run ruff format .
uv run ruff check --fix .
# lint
lint:
uv run ruff check .
# fmt-check + lint + typecheck (CI equivalent)
check:
uv run ruff format --check .
uv run ruff check .
uv run pyright
# run tests
test:
uv run pytest
# download and verify the raw sources into outputs/raw/ (all groups, or e.g. `just fetch-sources eia861 acs`)
fetch-sources *groups:
uv run article-data fetch {{groups}}
# run every analysis from fetched sources, then redraw the exhibits
pipeline *args:
uv run article-data all {{args}}
# redraw the article SVGs from the committed CSVs
exhibits:
uv run article-data exhibits