diff --git a/scripts/format.sh b/scripts/format.sh index b2c55be9d746a..df0156aa14efe 100755 --- a/scripts/format.sh +++ b/scripts/format.sh @@ -31,5 +31,12 @@ section "Rust" echo " rustfmt" >&2 bazel run @rules_rust//:rustfmt +# TODO: use bazel target when rules_python supports formatting +section "Python" +echo " python - isort, black, flake8, docformatter" >&2 +pip install tox +export TOXENV=linting +tox -c py/tox.ini + section "Copyright" bazel run //scripts:update_copyright