Update typos-cli to v1.24.6. Add scripts/check-spelling. Fix typos (#17961)

This commit is contained in:
Peter Tripp 2024-09-17 15:08:14 -04:00 committed by GitHub
parent 447a5d6e6e
commit c28b22d1cf
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
10 changed files with 20 additions and 18 deletions

11
script/check-spelling Executable file
View file

@ -0,0 +1,11 @@
#!/bin/sh
TYPOS_CLI_VERSION=1.24.6
if ! cargo install --list | grep "typos-cli v$TYPOS_CLI_VERSION" > /dev/null; then
echo "Installing typos-cli@$TYPOS_CLI_VERSION..."
cargo install "typos-cli@$TYPOS_CLI_VERSION"
else
echo "typos-cli@$TYPOS_CLI_VERSION is already installed."
fi
typos