Pitch black overboard
This commit is contained in:
parent
aef66f2e77
commit
4c5d2aaed2
3 changed files with 2 additions and 34 deletions
|
@ -2,12 +2,11 @@
|
||||||
set -euox pipefail
|
set -euox pipefail
|
||||||
cd "$(git rev-parse --show-toplevel)"
|
cd "$(git rev-parse --show-toplevel)"
|
||||||
|
|
||||||
bazel build //tools/python/...
|
bazel build //tools/python/... //projects/reqsort
|
||||||
|
|
||||||
DIRS=(projects tools)
|
DIRS=(projects tools)
|
||||||
|
|
||||||
bazel-bin/tools/python/autoflake -ir "${DIRS[@]}"
|
bazel-bin/tools/python/autoflake -ir "${DIRS[@]}"
|
||||||
bazel-bin/tools/python/black "${DIRS[@]}"
|
|
||||||
bazel-bin/tools/python/isort "${DIRS[@]}"
|
bazel-bin/tools/python/isort "${DIRS[@]}"
|
||||||
bazel-bin/tools/python/unify --quote '"' -ir "${DIRS[@]}"
|
bazel-bin/tools/python/unify --quote '"' -ir "${DIRS[@]}"
|
||||||
bazel-bin/tools/python/reqsort --execute tools/python/requirements.txt
|
bazel-bin/projects/reqsort/reqsort --execute tools/python/requirements.txt
|
||||||
|
|
|
@ -39,14 +39,6 @@ py_binary(
|
||||||
]
|
]
|
||||||
)
|
)
|
||||||
|
|
||||||
py_binary(
|
|
||||||
name = "black",
|
|
||||||
main = "black_shim.py",
|
|
||||||
deps = [
|
|
||||||
py_requirement("black"),
|
|
||||||
]
|
|
||||||
)
|
|
||||||
|
|
||||||
py_binary(
|
py_binary(
|
||||||
name = "isort",
|
name = "isort",
|
||||||
main = "isort_shim.py",
|
main = "isort_shim.py",
|
||||||
|
@ -106,15 +98,6 @@ py_binary(
|
||||||
]
|
]
|
||||||
)
|
)
|
||||||
|
|
||||||
py_binary(
|
|
||||||
name = "reqsort",
|
|
||||||
main = "reqsort.py",
|
|
||||||
deps = [
|
|
||||||
py_requirement("click"),
|
|
||||||
]
|
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
py_binary(
|
py_binary(
|
||||||
name = "templater",
|
name = "templater",
|
||||||
main = "templater.py",
|
main = "templater.py",
|
||||||
|
|
|
@ -1,14 +0,0 @@
|
||||||
#!/usr/bin/env python3
|
|
||||||
|
|
||||||
"""
|
|
||||||
Shim for executing black.
|
|
||||||
"""
|
|
||||||
|
|
||||||
import re
|
|
||||||
import sys
|
|
||||||
|
|
||||||
from black import patched_main
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
|
||||||
sys.argv[0] = re.sub(r"(-script\.pyw|\.exe)?$", "", sys.argv[0])
|
|
||||||
sys.exit(patched_main())
|
|
Loading…
Reference in a new issue