mirror of https://github.com/astral-sh/ruff
## Summary This PR resolves an issue raised in https://github.com/astral-sh/ruff/discussions/7810, whereby we don't fix an f-string that exceeds the line length _even if_ the resultant code is _shorter_ than the current code. As part of this change, I've also refactored and extracted some common logic we use around "ensuring a fix isn't breaking the line length rules". ## Test Plan `cargo test` |
||
|---|---|---|
| .. | ||
| test | ||