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