Skip to content

Commit 84bdf8b

Browse files
authored
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`
2 parents 7870003 + ca8b12e commit 84bdf8b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/tools/tidy/src/ext_tool_checks.rs

+3
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,9 @@ fn check_impl(
154154
args.insert(0, "--diff".as_ref());
155155
let _ = py_runner(py_path.as_ref().unwrap(), true, None, "ruff", &args);
156156
}
157+
if res.is_err() && !bless {
158+
eprintln!("rerun tidy with `--extra-checks=py:fmt --bless` to reformat Python code");
159+
}
157160
// Rethrow error
158161
let _ = res?;
159162
}

0 commit comments

Comments
 (0)