Skip to content

Commit

Permalink
Print how to rebless Python formatting in tidy
Browse files Browse the repository at this point in the history
  • Loading branch information
Kobzol committed Dec 31, 2024
1 parent 41b5796 commit 5cb54e3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/tools/tidy/src/ext_tool_checks.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 with --bless to reformat Python code");
}
// Rethrow error
let _ = res?;
}
Expand Down

0 comments on commit 5cb54e3

Please sign in to comment.