Files
nicholaswilde_recipes/scripts/spellcheck.sh

27 lines
595 B
Bash
Executable File
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#!/bin/bash
################################################################################
#
# spellcheck
# ----------------
# Re-generate typos configuration and run spellcheck
#
# @author nιcнolaѕ wιlde, 0x08b7d7a3
# @date 02 Jun 2026
# @version 0.1.0
#
################################################################################
set -e
set -o pipefail
if ! command -v uv &> /dev/null; then
echo "Error: 'uv' is not installed. Please install it to run Python scripts." >&2
exit 1
fi
a=$(git rev-parse --show-toplevel)
cd "${a}"
uv run scripts/generate_typos_config.py
typos