Skip to content

Commit 97c29e7

Browse files
navin772harsha509
andauthored
[build] tox formatting for python files in format.sh (#14497)
--------- Co-authored-by: Sri Harsha <[email protected]>
1 parent 2dcac9f commit 97c29e7

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

Diff for: scripts/format.sh

+7
Original file line numberDiff line numberDiff line change
@@ -31,5 +31,12 @@ section "Rust"
3131
echo " rustfmt" >&2
3232
bazel run @rules_rust//:rustfmt
3333

34+
# TODO: use bazel target when rules_python supports formatting
35+
section "Python"
36+
echo " python - isort, black, flake8, docformatter" >&2
37+
pip install tox
38+
export TOXENV=linting
39+
tox -c py/tox.ini
40+
3441
section "Copyright"
3542
bazel run //scripts:update_copyright

0 commit comments

Comments
 (0)