Skip to content

Commit 1d7fdd5

Browse files
authored
Merge pull request #461 from guan404ming/add-docs-check-to-lefthook
👷 add docs-check to `lefthook`
2 parents 2e00658 + 41b7ad5 commit 1d7fdd5

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

lefthook.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,12 @@ pre-commit:
1313
glob: "*.{py,pyi}"
1414
run: uv run --no-sync tool/format_ignores.py {staged_files}
1515
stage_fixed: true
16+
docs-check:
17+
glob:
18+
- "docs/**"
19+
- "mkdocs.yml"
20+
- "CONTRIBUTING.md"
21+
run: uv run --no-sync mkdocs build
1622

1723
post-checkout:
1824
commands:

0 commit comments

Comments
 (0)