mirror of https://github.com/astral-sh/ruff
## Summary Text ranges that overlap (or are adjacent) will be collapsed. This is done after text ranges have been adjusted to their enclosing nodes in the tree. Formatting of each range is then performed starting from the bottom of the file, ensuring that the following range still applies to the lines that the user intended to format. Implements #12800. ## Test Plan - Pre-existing unit tests ensure no regression or unexpected behavior change in regular executions with a single `--range` argument. - New unit tests have been added to cover the feature enhancement. |
||
|---|---|---|
| .. | ||
| src | ||
| tests | ||
| Cargo.toml | ||