mirror of
https://github.com/harvard-edge/cs249r_book.git
synced 2026-04-30 17:48:27 -05:00
refactor(scripts): standardize script naming convention for clarity
This commit is contained in:
@@ -54,7 +54,7 @@ repos:
|
||||
# --- Content Formatting ---
|
||||
- id: collapse-extra-blank-lines
|
||||
name: "Collapse extra blank lines"
|
||||
entry: python tools/scripts/content/collapse_blank_lines.py
|
||||
entry: python tools/scripts/content/format_blank_lines.py
|
||||
language: python
|
||||
pass_filenames: true
|
||||
files: ^quarto/contents/.*\.qmd$
|
||||
@@ -127,7 +127,7 @@ repos:
|
||||
# --- Structural & Reference Validation ---
|
||||
- id: check-unreferenced-labels
|
||||
name: "Check for unreferenced labels"
|
||||
entry: python ./tools/scripts/content/find_unreferenced_labels.py ./quarto/contents/core
|
||||
entry: python ./tools/scripts/content/check_unreferenced_labels.py ./quarto/contents/core
|
||||
language: python
|
||||
additional_dependencies: []
|
||||
pass_filenames: false
|
||||
@@ -135,7 +135,7 @@ repos:
|
||||
|
||||
- id: check-duplicate-labels
|
||||
name: "Check for duplicate labels"
|
||||
entry: python3 tools/scripts/content/find_duplicate_labels.py
|
||||
entry: python3 tools/scripts/content/check_duplicate_labels.py
|
||||
args: ['-d', 'quarto/contents/', '--figures', '--tables', '--listings', '--quiet', '--strict']
|
||||
language: system
|
||||
pass_filenames: false
|
||||
@@ -175,7 +175,7 @@ repos:
|
||||
# --- Image Validation ---
|
||||
- id: validate-images
|
||||
name: "Validate image files"
|
||||
entry: python tools/scripts/utilities/check_images.py
|
||||
entry: python tools/scripts/utilities/manage_images.py
|
||||
language: python
|
||||
additional_dependencies:
|
||||
- pillow
|
||||
@@ -185,7 +185,7 @@ repos:
|
||||
|
||||
- id: validate-external-images
|
||||
name: "Check for external images in Quarto files"
|
||||
entry: python3 tools/scripts/download_external_images.py --validate quarto/contents/
|
||||
entry: python3 tools/scripts/manage_external_images.py --validate quarto/contents/
|
||||
language: system
|
||||
pass_filenames: false
|
||||
files: ^quarto/contents/.*\.qmd$
|
||||
|
||||
Reference in New Issue
Block a user