Skip to content

Commit

Permalink
Unrolled build for rust-lang#134968
Browse files Browse the repository at this point in the history
Rollup merge of rust-lang#134968 - Kobzol:tidy-bless-log, r=Noratrieb

Print how to rebless Python formatting in tidy

Suggested [here](rust-lang#134964 (comment)).

r? ``@Noratrieb``
  • Loading branch information
rust-timer authored Jan 1, 2025
2 parents 4e59b1d + ca8b12e commit 9e931d0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/tools/tidy/src/ext_tool_checks.rs
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,9 @@ fn check_impl(
args.insert(0, "--diff".as_ref());
let _ = py_runner(py_path.as_ref().unwrap(), true, None, "ruff", &args);
}
if res.is_err() && !bless {
eprintln!("rerun tidy with `--extra-checks=py:fmt --bless` to reformat Python code");
}
// Rethrow error
let _ = res?;
}
Expand Down

0 comments on commit 9e931d0

Please sign in to comment.