mirror of
https://github.com/harvard-edge/cs249r_book.git
synced 2026-05-02 02:29:16 -05:00
Add bullet spacing check to pre-commit hooks
- Updated fix_bullet_spacing.py with --check mode for CI validation - Added book-fix-bullet-spacing hook to auto-fix missing blank lines before bullet lists during commits - Script now provides clear error messages with line numbers
This commit is contained in:
@@ -104,6 +104,13 @@ repos:
|
||||
pass_filenames: true
|
||||
files: ^book/quarto/contents/.*\.qmd$
|
||||
|
||||
- id: book-fix-bullet-spacing
|
||||
name: "Book: Fix bullet list spacing (blank line before lists)"
|
||||
entry: python book/tools/scripts/utilities/fix_bullet_spacing.py
|
||||
language: python
|
||||
pass_filenames: true
|
||||
files: ^book/quarto/contents/.*\.qmd$
|
||||
|
||||
- id: book-validate-json
|
||||
name: "Book: Validate JSON files"
|
||||
entry: python book/tools/scripts/utilities/validate_json.py
|
||||
|
||||
Reference in New Issue
Block a user