update images to webp, update pre-commit hooks
This commit is contained in:
+13
-11
@@ -38,7 +38,19 @@ else
|
||||
echo "⚠️ markdownlint not found, skipping markdown linting"
|
||||
fi
|
||||
|
||||
# --- Stage 2: Tag similarity check ---
|
||||
# --- Stage 2: Interactive spell check ---
|
||||
# Runs before tag check so typos in tags get corrected first
|
||||
if [ -x "./scripts/spellcheck-interactive.sh" ]; then
|
||||
if ! ./scripts/spellcheck-interactive.sh $STAGED_MD_FILES; then
|
||||
echo "❌ Spell check failed."
|
||||
OVERALL_RESULT=1
|
||||
fi
|
||||
else
|
||||
echo "⚠️ Spell check script not found or not executable, skipping spell check"
|
||||
fi
|
||||
|
||||
# --- Stage 3: Tag similarity check ---
|
||||
# Runs after spell check so corrected tags are compared
|
||||
if command -v python3 &> /dev/null && [ -f "./scripts/check-tags.py" ]; then
|
||||
echo "Running tag similarity check..."
|
||||
if ! python3 ./scripts/check-tags.py $STAGED_MD_FILES; then
|
||||
@@ -49,16 +61,6 @@ else
|
||||
echo "⚠️ Tag checker (python3 or scripts/check-tags.py) not found, skipping tag check"
|
||||
fi
|
||||
|
||||
# --- Stage 3: Interactive spell check ---
|
||||
if [ -x "./scripts/spellcheck-interactive.sh" ]; then
|
||||
if ! ./scripts/spellcheck-interactive.sh $STAGED_MD_FILES; then
|
||||
echo "❌ Spell check failed."
|
||||
OVERALL_RESULT=1
|
||||
fi
|
||||
else
|
||||
echo "⚠️ Spell check script not found or not executable, skipping spell check"
|
||||
fi
|
||||
|
||||
# --- Stage 4: Link validation ---
|
||||
if [ -x "./scripts/check-links.sh" ]; then
|
||||
echo "Running link validation..."
|
||||
|
||||
Reference in New Issue
Block a user