Skip to content

Commit 22e9c8b

Browse files
navin772harsha509
authored andcommitted
[build] tox formatting for python files in format.sh (SeleniumHQ#14497)
--------- Co-authored-by: Sri Harsha <[email protected]>
1 parent 9f09c29 commit 22e9c8b

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

scripts/format.sh

Lines changed: 7 additions & 0 deletions
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)