Get fmt working again
This commit is contained in:
parent
2ab0339e49
commit
4d9a777fc8
1 changed files with 8 additions and 4 deletions
12
tools/fmt.sh
12
tools/fmt.sh
|
@ -9,11 +9,15 @@ DIRS=(projects tools)
|
||||||
function brl() {
|
function brl() {
|
||||||
bin="$1"
|
bin="$1"
|
||||||
shift
|
shift
|
||||||
bazel run "//${bin}" -- "$@"
|
bazel build "//${bin}"
|
||||||
|
"bazel-bin/${bin}/$(basename ${bin})" "$@"
|
||||||
return "$?"
|
return "$?"
|
||||||
}
|
}
|
||||||
|
|
||||||
brl tools/autoflake --remove-all-unused-imports -ir "${DIRS[@]}"
|
for d in "${DIRS[@]}"; do
|
||||||
brl tools/isort "${DIRS[@]}"
|
brl tools/autoflake --remove-all-unused-imports -ir $(realpath "$d")
|
||||||
brl tools/unify --quote '"' -ir "${DIRS[@]}"
|
brl tools/isort $(realpath "$d")
|
||||||
|
brl tools/unify --quote '"' -ir $(realpath "$d")
|
||||||
|
done
|
||||||
|
|
||||||
brl projects/reqman clean tools/python/requirements.txt
|
brl projects/reqman clean tools/python/requirements.txt
|
||||||
|
|
Loading…
Reference in a new issue