Orange (Leo's beautify commands) will offer
two line-length options. Something like:
@int beautify-split-lines-length = 88
@int beautify-join-lines-length = 60
Lines will be split if they are longer than 88 characters, but only be joined if the resulting line is shorter than 60 characters. This provides a small bias (hysteresis) towards not splitting or joining lines. Orange will split and join lines as black does if these two settings have the same value.
Edward
P.S. Recent experience reinforces my strong opinion that tools should sport a full range of options. Yes, it's best not to spend much time arguing about small differences in python style. However, it's clear that an organization should have the right to choose the style that best suits its need. Leo is not alone in having special needs.
Leonistas can now blacken external files within Leo, without worrying about black ruining Leo's sentinels. Soon, Leonistas will be able to beautify their code
exactly as they like.
EKR