Skip to content

Commit 0904d58

Browse files
committed
feat: ✨ add rumdl to justfile
1 parent eb66dd1 commit 0904d58

2 files changed

Lines changed: 11 additions & 3 deletions

File tree

justfile

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
@_builds: build-contributors build-website build-readme
88

99
# Run all build-related recipes in the justfile
10-
run-all: update-quarto-theme update-template _checks _tests _builds
10+
run-all: update-quarto-theme update-template _checks format-md _tests _builds
1111

1212
# Install the pre-commit hooks
1313
install-precommit:
@@ -25,7 +25,7 @@ update-quarto-theme:
2525

2626
# Update files in the template from the copier parent folder
2727
update-template:
28-
cp CODE_OF_CONDUCT.md .pre-commit-config.yaml .typos.toml .editorconfig template/
28+
cp CODE_OF_CONDUCT.md .pre-commit-config.yaml .typos.toml .editorconfig .rumdl.toml template/
2929
mkdir -p template/tools
3030
cp tools/get-contributors.sh template/tools/
3131
cp .github/pull_request_template.md template/.github/
@@ -48,6 +48,10 @@ check-commits:
4848
check-spelling:
4949
uvx typos
5050

51+
# Format Markdown files
52+
format-md:
53+
uvx rumdl fmt --silent
54+
5155
# Test that a Python package can be created from the template, with parameters for: `is_seedcase_project` (true or false) and `hosting_provider` (either "gh-pages" or "netlify")
5256
test is_seedcase_project="true" hosting_provider="netlify":
5357
sh ./test-template.sh {{ is_seedcase_project }} {{ hosting_provider }}

template/justfile.jinja

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
# Run all build-related recipes in the justfile
99
{%- if is_seedcase_project %}
10-
run-all: install-deps update-quarto-theme format-python _checks _tests _builds
10+
run-all: install-deps update-quarto-theme format-python format-md _checks _tests _builds
1111
{%- else %}
1212
run-all: install-deps format-python _checks _tests _builds
1313
{%- endif %}
@@ -61,6 +61,10 @@ format-python:
6161
uv run ruff check --fix .
6262
uv run ruff format .
6363

64+
# Format Markdown files
65+
format-md:
66+
uvx rumdl fmt --silent
67+
6468
# Build the documentation website using Quarto
6569
build-website:
6670
# To let Quarto know where python is.

0 commit comments

Comments
 (0)