Get fmt working again

This commit is contained in:
Reid 'arrdem' McKenzie 2021-10-10 21:42:55 -06:00
parent 1d1c4a76f5
commit 64e7de4321

View file

@ -9,11 +9,15 @@ DIRS=(projects tools)
function brl() {
bin="$1"
shift
bazel run "//${bin}" -- "$@"
bazel build "//${bin}"
"bazel-bin/${bin}/$(basename ${bin})" "$@"
return "$?"
}
brl tools/autoflake --remove-all-unused-imports -ir "${DIRS[@]}"
brl tools/isort "${DIRS[@]}"
brl tools/unify --quote '"' -ir "${DIRS[@]}"
for d in "${DIRS[@]}"; do
brl tools/autoflake --remove-all-unused-imports -ir $(realpath "$d")
brl tools/isort $(realpath "$d")
brl tools/unify --quote '"' -ir $(realpath "$d")
done
brl projects/reqman clean tools/python/requirements.txt