Skip to content

Commit 8f28ed3

Browse files
authored
build: 🔨 update justfile with recipes from Sprout (#75)
1 parent f8a0df4 commit 8f28ed3

File tree

1 file changed

+21
-1
lines changed

1 file changed

+21
-1
lines changed

justfile

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
just --list --unsorted
33

44
# Run all build-related recipes in the justfile
5-
run-all: install-deps format-python check-python test-python check-security check-spelling check-commits build-website
5+
run-all: install-deps format-python check-python check-unused test-python check-security check-spelling check-commits build-website
66

77
# Install Python package dependencies
88
install-deps:
@@ -54,3 +54,23 @@ check-security:
5454
# Check for spelling errors in files
5555
check-spelling:
5656
uv run typos
57+
58+
# Build the documentation as PDF using Quarto
59+
build-pdf:
60+
# To let Quarto know where python is.
61+
export QUARTO_PYTHON=.venv/bin/python3
62+
uv run quarto install tinytex
63+
# For generating images from Mermaid diagrams
64+
uv run quarto install chromium
65+
uv run quarto render --profile pdf --to pdf
66+
find docs -name "mermaid-figure-*.png" -delete
67+
68+
# Check for unused code in the package and its tests
69+
check-unused:
70+
# exit code=0: No unused code was found
71+
# exit code=3: Unused code was found
72+
# Three confidence values:
73+
# - 100 %: function/method/class argument, unreachable code
74+
# - 90 %: import
75+
# - 60 %: attribute, class, function, method, property, variable
76+
uv run vulture src/ tests/

0 commit comments

Comments
 (0)