-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
27 lines (19 loc) · 676 Bytes
/
Copy pathMakefile
File metadata and controls
27 lines (19 loc) · 676 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
.PHONY: lint format check typecheck typecheck-nb check-all nb2md pages
lint:
uv run ruff check .
format:
uv run ruff format .
typecheck:
uv run mypy --sqlite-cache .
typecheck-nb:
uv run nbqa mypy --sqlite-cache notebooks/
check: lint typecheck
check-all: check typecheck-nb
# Convert notebook to LLM-friendly markdown (no HTML, no ANSI)
# Usage: make nb2md NB=notebooks/example.ipynb
nb2md:
@uv run jupyter nbconvert --to markdown --stdout --config nbconvert_templates/config.py --template plaintext $(NB)
# Generate pages from notebooks with llms.txt
# Usage: make pages [OUTPUT=./pages]
pages:
@./scripts/generate-pages.sh $(if $(OUTPUT),--output $(OUTPUT),)