Skip to content

Commit ca8b12e

Browse files
committed
Print how to rebless Python formatting in tidy
1 parent 41b5796 commit ca8b12e

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)