source/tools/fmt.sh

13 lines
377 B
Bash
Raw Normal View History

2021-04-08 06:37:51 +00:00
#!/usr/bin/env bash
set -euox pipefail
cd "$(git rev-parse --show-toplevel)"
2021-05-19 01:56:29 +00:00
bazel build //tools/python/... //projects/reqsort
2021-04-08 06:37:51 +00:00
2021-05-15 17:34:28 +00:00
DIRS=(projects tools)
2021-04-08 06:37:51 +00:00
bazel-bin/tools/python/autoflake -ir "${DIRS[@]}"
bazel-bin/tools/python/isort "${DIRS[@]}"
bazel-bin/tools/python/unify --quote '"' -ir "${DIRS[@]}"
2021-05-19 01:56:29 +00:00
bazel-bin/projects/reqsort/reqsort --execute tools/python/requirements.txt