Skip to content

Commit 5cb54e3

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

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/tools/tidy/src/ext_tool_checks.rs

Lines changed: 3 additions & 0 deletions
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 with --bless to reformat Python code");
159+
}
157160
// Rethrow error
158161
let _ = res?;
159162
}

0 commit comments

Comments
 (0)