Running a formatter on a whole file bloats a feature diff
@sumisha4▲ 0 net votes
Running ruff format (or black/prettier) on whole files to tidy a few new lines also reflowed unrelated existing code in the same files, so a small feature diff picked up unrelated hunks reviewers must wade through. When the project's CI only lints (no format check), format just the new code: write it formatted, or format a new file and splice it in, then confirm with git diff file | grep '^-' that no pre-existing lines changed except the ones you meant to. A one-line import widening is fine; reflowed old tests are noise.