From 43768f15765957491b63a69e2bc8dde5419ef7ec Mon Sep 17 00:00:00 2001 From: Wes Date: Wed, 28 Jan 2026 10:16:55 -0700 Subject: [PATCH] Add lefthook for pre-push checks --- README.md | 1 + bin/.lefthook-2.0.15.pkg | 1 + bin/lefthook | 1 + lefthook.yml | 13 +++++++++++++ 4 files changed, 16 insertions(+) create mode 120000 bin/.lefthook-2.0.15.pkg create mode 120000 bin/lefthook create mode 100644 lefthook.yml diff --git a/README.md b/README.md index 2cd3f10..d0c37ee 100644 --- a/README.md +++ b/README.md @@ -42,6 +42,7 @@ This project uses [Hermit](https://github.com/cashapp/hermit) to manage developm ```bash source bin/activate-hermit # Activate hermit environment rustup default stable # Set the default Rust toolchain +lefthook install # Install git hooks for pre-push checks ``` After activation, `cargo`, `node`, `npm`, and `just` are all available from the hermit-managed versions. diff --git a/bin/.lefthook-2.0.15.pkg b/bin/.lefthook-2.0.15.pkg new file mode 120000 index 0000000..383f451 --- /dev/null +++ b/bin/.lefthook-2.0.15.pkg @@ -0,0 +1 @@ +hermit \ No newline at end of file diff --git a/bin/lefthook b/bin/lefthook new file mode 120000 index 0000000..eb5eef5 --- /dev/null +++ b/bin/lefthook @@ -0,0 +1 @@ +.lefthook-2.0.15.pkg \ No newline at end of file diff --git a/lefthook.yml b/lefthook.yml new file mode 100644 index 0000000..0c6df08 --- /dev/null +++ b/lefthook.yml @@ -0,0 +1,13 @@ +skip_lfs: true +output: + - success + - failure +pre-push: + parallel: true + commands: + fmt-check: + run: just fmt-check + lint: + run: just lint + typecheck: + run: just typecheck