From 60faf81209bbd87021eda0bb7ca9a0cb1ed69072 Mon Sep 17 00:00:00 2001 From: Paul Tsouchlos Date: Wed, 18 Sep 2024 13:41:37 -0600 Subject: [PATCH] build: add format script and just command --- Justfile | 3 +++ scripts/format | 4 ++++ 2 files changed, 7 insertions(+) create mode 100755 scripts/format diff --git a/Justfile b/Justfile index f1a24f7..28e84d2 100644 --- a/Justfile +++ b/Justfile @@ -38,5 +38,8 @@ uninstall: (remove "@local") # uninstalls the library from the "@preview" prefix (for pre-release testing) uninstall-preview: (remove "@preview") +format: + ./scripts/format + # run ci suite ci: test doc diff --git a/scripts/format b/scripts/format new file mode 100755 index 0000000..b7b47a4 --- /dev/null +++ b/scripts/format @@ -0,0 +1,4 @@ +#!/usr/bin/env bash +set -eu + +find . -iname "*.typ" | xargs typstyle -i \ No newline at end of file