Run additional checks from script/clippy if local (#29768)

Should cut down on the number of CI cycles if you're forgetful like I
am!

Release Notes:

- N/A
This commit is contained in:
Cole Miller 2025-05-01 21:26:12 -04:00 committed by GitHub
parent e1e3f2e423
commit d25da9728b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 20 additions and 10 deletions

View file

@ -8,3 +8,12 @@ fi
set -x
"${CARGO:-cargo}" clippy "$@" --release --all-targets --all-features -- --deny warnings
# If local, run other checks if we have the tools installed.
if [[ -z "${GITHUB_ACTIONS+x}" ]]; then
which cargo-machete >/dev/null 2>&1 || exit 0
cargo machete
which typos >/dev/null 2>&1 || exit 0
typos --config typos.toml
fi