Chuck out reqsort for a stub of something more general

This commit is contained in:
Reid 'arrdem' McKenzie 2021-08-04 00:16:55 -06:00
commit fce09a6e7a
8 changed files with 184 additions and 97 deletions

View file

@ -2,11 +2,11 @@
set -euox pipefail
cd "$(git rev-parse --show-toplevel)"
bazel build //tools/python/... //projects/reqsort
bazel build //tools/python/... //projects/reqman
DIRS=(projects tools)
bazel-bin/tools/python/autoflake -ir "${DIRS[@]}"
bazel-bin/tools/python/isort "${DIRS[@]}"
bazel-bin/tools/python/unify --quote '"' -ir "${DIRS[@]}"
bazel-bin/projects/reqsort/reqsort --execute tools/python/requirements.txt
bazel-bin/projects/reqman/reqman sort tools/python/requirements.txt

View file

@ -3,13 +3,12 @@ set -euox pipefail
cd "$(git rev-parse --show-toplevel)"
bazel build //tools/python/...
DIRS=(*)
DIRS=(tools projects)
bazel-bin/tools/python/autoflake -r "${DIRS[@]}"
bazel-bin/tools/python/black --check "${DIRS[@]}"
bazel-bin/tools/python/isort --check "${DIRS[@]}"
bazel-bin/tools/python/unify --quote '"' -cr "${DIRS[@]}"
bazel-bin/tools/python/reqsort --dryrun tools/python/requirements.txt
bazel-bin/projects/reqman/reqman lint tools/python/requirements.txt
for f in $(find . -type f -name "openapi.yaml"); do
bazel-bin/tools/python/openapi "${f}" && echo "Schema $f OK"