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 committed May 8, 2024
1 parent 5859007 commit b9d74da
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 @@ -861,6 +861,8 @@ cmd_test_debug() {
#
cmd_fmt() {
cmd_sh "cargo fmt --all -- --config $(tr '\n' ',' <tests/fmt.toml)"
cmd_sh "black tests tools .buildkite"
cmd_sh "mdformat $(git ls-files '*.md' | tr '\n' ' ')"
}

cmd_mkdocs() {
Expand Down

0 comments on commit b9d74da

Please sign in to comment.