Skip to content

Commit

Permalink
Have tools/devtool fmt also run black and mdformat
Browse files Browse the repository at this point in the history
Previously, it would only run `cargo fmt`. Now, it will please all
formatting rules we have in our CI, e.g. also include python and
markdown formatters.

Signed-off-by: Patrick Roy <roypat@amazon.co.uk>
  • Loading branch information
roypat authored and pb8o committed May 13, 2024
1 parent 9adc059 commit 8b15271
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tools/devtool
Original file line number Diff line number Diff line change
Expand Up @@ -884,6 +884,8 @@ cmd_test_debug() {
#
cmd_fmt() {
cmd_sh "cargo fmt --all -- --config $(tr '\n' ',' <tests/fmt.toml)"
cmd_sh "cd tests; black . ../tools ../.buildkite"
cmd_sh "mdformat $(git ls-files '*.md' | tr '\n' ' ')"
}

cmd_mkdocs() {
Expand Down

0 comments on commit 8b15271

Please sign in to comment.