-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathMakefile
More file actions
41 lines (33 loc) · 889 Bytes
/
Makefile
File metadata and controls
41 lines (33 loc) · 889 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
37
38
39
40
41
.PHONY: lint
lint:
ruff check --exit-zero .
ruff format --check .
.PHONY: format
format:
ruff check --fix .
ruff format .
.PHONY: pre-commit
pre-commit:
pre-commit run --all-files
.PHONY: test
test:
pytest -v .
.PHONY: execute
execute:
# Project-wide render without executing code cells.
# Instead, rely on pre-computed results present in `_freeze/`.
quarto render
# Now, render `index.ipynb` with code execution.
# This will populate `_freeze/index/` with pre-computed results.
quarto render index.ipynb --execute
.PHONY: preview
preview:
quarto preview
.PHONY: execute-demo
execute-demo:
# This command is only necessary when changes are made to the demo notebook
# for development of the notebook pub template.
quarto render examples/demo.ipynb --execute
.PHONY: update-theme
update-theme:
quarto update extension Arcadia-Science/notebook-pub-theme --no-prompt