test spell check
This commit is contained in:
parent
903e6b06f1
commit
cf2d874f08
@ -27,6 +27,12 @@ fi
|
||||
|
||||
# Spell check
|
||||
if command -v aspell &> /dev/null; then
|
||||
# Check if aspell can find dictionaries
|
||||
if ! aspell dump dicts 2>/dev/null | grep -q "en"; then
|
||||
echo "⚠️ aspell found but no English dictionaries available"
|
||||
echo " Make sure ASPELL_CONF is set correctly in your direnv"
|
||||
echo " Skipping spell check"
|
||||
else
|
||||
echo "Running spell check..."
|
||||
MISSPELLED=0
|
||||
for file in $STAGED_MD_FILES; do
|
||||
@ -44,6 +50,7 @@ if command -v aspell &> /dev/null; then
|
||||
echo "Use 'git commit --no-verify' to skip if needed."
|
||||
exit 1
|
||||
fi
|
||||
fi
|
||||
else
|
||||
echo "⚠️ aspell not found, skipping spell check"
|
||||
fi
|
||||
|
@ -23,13 +23,15 @@
|
||||
];
|
||||
|
||||
shellHook = ''
|
||||
echo "Hugo development environment loaded"
|
||||
echo "Hugo version: $(hugo version)"
|
||||
# export ASPELL_CONF="dict-dir ${pkgs.aspellDicts.en}/lib/aspell"
|
||||
|
||||
# Auto-install git hooks if not already installed
|
||||
if [ ! -L .git/hooks/pre-commit ]; then
|
||||
bash scripts/install_hooks.sh
|
||||
fi
|
||||
|
||||
echo "Hugo development environment loaded"
|
||||
echo "Hugo version: $(hugo version)"
|
||||
'';
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user