Add check.sh and fixup.sh scripts

This commit is contained in:
2026-01-01 16:47:50 -06:00
parent 7b8eaac637
commit 58f88e3695
2 changed files with 52 additions and 0 deletions

22
fixup.sh Executable file
View File

@@ -0,0 +1,22 @@
#!/bin/bash
set -eu
DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
cd "$DIR"
# uv run ruff check --select I --fix .
# uv run ruff format .
shell_scripts="$(fd .sh | xargs)"
shfmt -i 4 -w "$DIR/cmd" "$DIR"/framework/cmd.d/* "$DIR"/framework/shims/*
# "$shell_scripts"
for ss in $shell_scripts; do
shfmt -i 4 -w $ss
done
pushd "$DIR/master"
go fmt
popd