Re:Show HN: Making Python one-liner-fit with the new pwk (Py...
by rjmorris on Sunday November 22, 2020 @07:38PM
(#25182437)
You can change the max line length in black (the Python formatter I hear mentioned most often). How would you feel about setting it to something really large, like 1000, to emulate having no line length limit?
[ Parent
| on HN ]
Re:Show HN: Making Python one-liner-fit with the new pwk (Py...
by georgyo on Sunday November 22, 2020 @07:58PM
(#25182546)
That doesn't work still. It will reflow all your lines to reflow to 1000. Try it out, anything above 88 makes even the cleanest python a nightmare.
I don't like long lines, but reflowing logic is way to aggressive in these formatters.