On Sun, 5 Oct 2025 at 14:31, Maarten ter Huurne <[email protected]> wrote: > > The Black and Ruff formatting tools for Python use a "magic comma" rule > that works well in practice: if the last item has a trailing comma, the > items are guaranteed to be formatted multi-line, while if there is no > trailing comma, single-line formatting is attempted.
Oh, that sounds like a good heuristic, because that "comma after last
entry" is very much "I expect this list to be expanded upon later".
Linus
