1
Fork 0

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:
Trevor Gross 2024-12-31 18:42:24 -05:00 committed by GitHub
commit 53b99dee15
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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?;
}