Skip to content

Commit

Permalink
[build] tox formatting for python files in format.sh (#14497)
Browse files Browse the repository at this point in the history

---------

Co-authored-by: Sri Harsha <[email protected]>
  • Loading branch information
navin772 and harsha509 authored Oct 18, 2024
1 parent 2dcac9f commit 97c29e7
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions scripts/format.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 97c29e7

Please sign in to comment.