Rollup merge of #134968 - Kobzol:tidy-bless-log, r=Noratrieb
Print how to rebless Python formatting in tidy Suggested [here](https://github.com/rust-lang/rust/pull/134964#discussion_r1900124882). r? ``@Noratrieb``
This commit is contained in:
commit
53b99dee15
1 changed files with 3 additions and 0 deletions
|
@ -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?;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue