dotfiles/home/private_dot_config/zsh/functions/executable_format-qmd

5 lines
159 B
Bash

#!/usr/bin/env zsh
##? format-qmd - use jupytext and ruff to format qmd
jupytext --from qmd $1 --pipe 'ruff format {}' --opt 'notebook_metadata_filter=-all'