Skip to content

Commit 92a4167

Browse files
committed
Run lefthook liche only when md changed
1 parent a7e9a63 commit 92a4167

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lefthook.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ pre-commit:
66
run: mdl {staged_files}
77
liche:
88
tags: links
9-
glob: "**/*.md"
10-
run: liche -c 2 -r docs/* -d docs/ -x "(recipes|profilers|misc)/"
9+
glob: "docs/*.md"
10+
run: liche -c 2 -r docs/* -d docs/ -x "(recipes|profilers|misc)/" && test {staged_files}
1111
forspell:
1212
tags: grammar
1313
glob: "**/*.md"

0 commit comments

Comments
 (0)