Skip to content

Commit

Permalink
Rollup merge of rust-lang#134968 - Kobzol:tidy-bless-log, r=Noratrieb
Browse files Browse the repository at this point in the history
Print how to rebless Python formatting in tidy

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

r? `@Noratrieb`
  • Loading branch information
Noratrieb authored Dec 31, 2024
2 parents 7870003 + ca8b12e commit 84bdf8b
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 84bdf8b

Please # to comment.