mirror of
https://github.com/astral-sh/ruff.git
synced 2025-07-24 05:25:17 +00:00
Add formatter progress tracking to CI (#5919)
**Summary** Add a formatter progress testing script to CI. This script will 1) print the black compability on each run 2) catch regressions wrt to formatter stability, emitting invalid syntax and other kinds of bugs (e.g. #5917) before they land on main 3) have an additional layer of real world tests when implementing new nodes or other new formatter code. This is currently a bash script, i'm not sure if we want to keep it that way, or switch to e.g. the regular ecosystem scripts. The output separation of `format_dev` could also use some polishing. We should also consider pinning commits so we don't get spurious regression when they change their code. **Test Plan** The script extends CI.
This commit is contained in:
parent
dfa81b6fe0
commit
8a7dcb794b
3 changed files with 57 additions and 4 deletions
|
@ -255,7 +255,7 @@ fn format_dev_multi_project(args: &Args) -> anyhow::Result<bool> {
|
|||
|
||||
bar.suspend(|| {
|
||||
println!(
|
||||
"Finished {} with {} files (similarity index {:.3}) in {:.2}s",
|
||||
"Finished {}: {} files, similarity index {:.3}, {:.2}s",
|
||||
project_path.display(),
|
||||
result.file_count,
|
||||
result.statistics.similarity_index(),
|
||||
|
@ -275,6 +275,7 @@ fn format_dev_multi_project(args: &Args) -> anyhow::Result<bool> {
|
|||
bar.inc(1);
|
||||
}
|
||||
}
|
||||
bar.finish_and_clear();
|
||||
}
|
||||
|
||||
let duration = start.elapsed();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue