mirror of
https://github.com/astral-sh/ruff
synced 2026-01-09 07:34:06 -05:00
Add support for ruff-ecosystem format comparisons with black (#8419)
Extends https://github.com/astral-sh/ruff/pull/8416 activating the `black-and-ruff` and `black-then-ruff` formatter comparison modes for ecosystem checks allowing us to compare changes to Black across the ecosystem.
This commit is contained in:
@@ -37,6 +37,12 @@ Run `ruff format` ecosystem checks comparing with changes to code that is alread
|
||||
ruff-ecosystem format ruff "./target/debug/ruff" --format-comparison ruff-then-ruff
|
||||
```
|
||||
|
||||
Run `ruff format` ecosystem checks comparing with the Black formatter:
|
||||
|
||||
```shell
|
||||
ruff-ecosystem format black ruff -v --cache python/checkouts --format-comparison black-and-ruff
|
||||
```
|
||||
|
||||
The default output format is markdown, which includes nice summaries of the changes. You can use `--output-format json` to display the raw data — this is
|
||||
particularly useful when making changes to the ecosystem checks.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user