-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlefthook.yml
More file actions
36 lines (33 loc) · 801 Bytes
/
Copy pathlefthook.yml
File metadata and controls
36 lines (33 loc) · 801 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# Lefthook manages Git hooks declaratively.
# Install with: pnpm hook:install
# Skip once with: LEFTHOOK=0 git commit -m "message"
lefthook: "pnpm exec lefthook"
pre-commit:
skip:
- merge
- merge-commit
- rebase
parallel: true
commands:
format-biome:
run: bash .git-hooks/format-staged-files.sh {staged_files}
stage_fixed: true
format-markdown:
glob: "*.{md,mdx}"
run: bash .git-hooks/format-staged-markdown.sh {staged_files}
stage_fixed: true
py-compile:
glob: "*.py"
run: bash .git-hooks/compile-staged-python.sh {staged_files}
tc:
glob: "*.{ts,tsx}"
run: pnpm tc
pre-push:
parallel: true
commands:
format-check:
run: pnpm format:check
tc:
run: pnpm tc
test:
run: pnpm test