We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a0debc2 commit c8f87d6Copy full SHA for c8f87d6
.githooks/pre-commit
@@ -0,0 +1,17 @@
1
+#!/bin/sh
2
+
3
+# Run formatter
4
+if command -v just >/dev/null 2>&1; then
5
+ echo "[pre-commit] running: just fmt"
6
+ just fmt
7
+else
8
+ echo "[pre-commit] 'just' not found in PATH" >&2
9
+ exit 1
10
+fi
11
12
+# Auto-add any changes made by formatting
13
+git add -A
14
15
+exit 0
16
17
.pre-commit-config.yaml
@@ -0,0 +1,9 @@
+repos:
+ - repo: local
+ hooks:
+ - id: just-fmt
+ name: just fmt
+ entry: just fmt
+ language: system
+ pass_filenames: false
+ stages: [commit]
0 commit comments