From 64e7de4321870799fe11b396982e83474fe86ae3 Mon Sep 17 00:00:00 2001 From: Reid 'arrdem' McKenzie Date: Sun, 10 Oct 2021 21:42:55 -0600 Subject: [PATCH] Get fmt working again --- tools/fmt.sh | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/tools/fmt.sh b/tools/fmt.sh index fac39f9..49b8592 100755 --- a/tools/fmt.sh +++ b/tools/fmt.sh @@ -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