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

6 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'