fix(windows-container): use standard ltsc2022 base image and update paths

This commit is contained in:
Vijay Janapa Reddi
2025-08-05 15:27:17 -04:00
parent 56f8b87f99
commit 41ee77e40e
3 changed files with 24 additions and 24 deletions

View File

@@ -21,12 +21,12 @@ repos:
- id: trailing-whitespace
name: "Trim trailing whitespace"
files: ^book/contents/.*\.qmd$
files: ^quarto/contents/.*\.qmd$
verbose: false
- id: end-of-file-fixer
name: "Fix end of file newlines"
files: ^book/contents/.*\.qmd$
files: ^quarto/contents/.*\.qmd$
verbose: false
# - repo: https://github.com/igorshubovych/markdownlint-cli
@@ -45,7 +45,7 @@ repos:
- id: mdformat
name: "Format quarto markdown"
additional_dependencies: [mdformat-frontmatter]
files: ^book/contents/.*\.qmd$
files: ^quarto/contents/.*\.qmd$
pass_filenames: true
# --- Bibliography ---
@@ -67,7 +67,7 @@ repos:
'--wrap=100',
'--blank-lines'
]
files: ^book/contents/.*\.bib$
files: ^quarto/contents/.*\.bib$
# --- Local Custom Hooks ---
- repo: local
@@ -75,7 +75,7 @@ repos:
# --- Structural & Reference Validation ---
- id: check-unreferenced-labels
name: "Check for unreferenced labels"
entry: python ./tools/scripts/content/find_unreferenced_labels.py ./book/contents/core
entry: python ./tools/scripts/content/find_unreferenced_labels.py ./quarto/contents/core
language: python
additional_dependencies: []
pass_filenames: false
@@ -84,10 +84,10 @@ repos:
- id: check-duplicate-labels
name: "Check for duplicate labels"
entry: python3 tools/scripts/content/find_duplicate_labels.py
args: ['-d', 'book/contents/', '--figures', '--tables', '--listings', '--quiet', '--strict']
args: ['-d', 'quarto/contents/', '--figures', '--tables', '--listings', '--quiet', '--strict']
language: system
pass_filenames: false
files: ^book/contents/.*\.qmd$
files: ^quarto/contents/.*\.qmd$
description: "Ensure all figure, table, and listing labels are unique across the book"
# - id: check-section-ids
@@ -103,14 +103,14 @@ repos:
entry: bash -c 'find . -name "*.qmd" -exec grep -nE "^[^#\n]*\\.[#]{1,6} " {} + && exit 1 || exit 0'
language: system
pass_filenames: false
files: ^book/contents/.*\.qmd$
files: ^quarto/contents/.*\.qmd$
- id: grep-forbidden-phrases
name: "Check for forbidden words"
entry: bash -c 'grep --color=always -n -E "Retry" "$@" && exit 1 || exit 0'
language: system
pass_filenames: true
files: ^book/contents/.*\.qmd$
files: ^quarto/contents/.*\.qmd$
# --- Formatting and Cleanup ---
- id: collapse-extra-blank-lines
@@ -118,7 +118,7 @@ repos:
entry: python tools/scripts/content/collapse_blank_lines.py
language: python
pass_filenames: true
files: ^book/contents/.*\.qmd$
files: ^quarto/contents/.*\.qmd$
# --- Image Validation ---
- id: validate-images
@@ -133,18 +133,18 @@ repos:
- id: validate-external-images
name: "Check for external images in Quarto files"
entry: python3 tools/scripts/download_external_images.py --validate book/contents/
entry: python3 tools/scripts/download_external_images.py --validate quarto/contents/
language: system
pass_filenames: false
files: ^book/contents/.*\.qmd$
files: ^quarto/contents/.*\.qmd$
description: "Ensure all images are local for build reliability"
- id: validate-image-references
name: "Check that all image references exist on disk"
entry: python3 tools/scripts/validate_image_references.py -d book/contents/ --quiet
entry: python3 tools/scripts/validate_image_references.py -d quarto/contents/ --quiet
language: system
pass_filenames: false
files: ^book/contents/.*\.qmd$
files: ^quarto/contents/.*\.qmd$
description: "Ensure all referenced images exist on disk"
# --- Auto-cleanup with Book Binder ---
@@ -169,7 +169,7 @@ repos:
# --- Locked File Check (macOS specific) ---
- id: check-locked-files
name: "Detect locked files (uchg flag on macOS)"
entry: bash -c 'find book/contents/ -type f -exec ls -lO {} + | grep -q " uchg " && { echo "❌ Locked files detected (uchg). Please unlock them before commit."; exit 1; } || exit 0'
entry: bash -c 'find quarto/contents/ -type f -exec ls -lO {} + | grep -q " uchg " && { echo "❌ Locked files detected (uchg). Please unlock them before commit."; exit 1; } || exit 0'
language: system
pass_filenames: false