3 ms·
My only complaint with black is that it only splits long definitions into per-line if they exceed a limit. That’s probably configurable, now that I write it dow
by sgarland 2y ago
My only complaint with black is that it only splits long definitions into per-line if they exceed a limit. That’s probably configurable, now that I write it down.
Other than that, I actually quite like its formatting choices.
- pushfoo 2y agoLine length is definitely configurable. All it takes is adding the following on pyproject.toml[1]: [tool.black] line-length = 100 Aside from matrix-like or column aligned data, the only truly awful thing I've encountered has been broken f-string handling[2]. [1]: Example from https://github.com/pythonarcade/arcade/blob/808e1dafcf1da30f52e1daea858c32cad92e97d5/pyproject.toml#L177-L188 https://github.com/pythonarcade/arcade/blob/808e1dafcf1da30f... [2]: https://github.com/psf/black/issues/4389 https://github.com/psf/black/issues/4389