I don't understand. You wrote that it changes the sentinels. We can't have that. So which is it? Not changed or changed? And why have another dependency if it's not absolutely needed? Will there be a fallback if Ruff/Rust isn't installed? How long did the current beautifier take to beautify Leo's code base? How long for ruff format? If the difference is only a few seconds, it's probably not worth it.
On Thursday, January 8, 2026 at 10:08:06 AM UTC-5 Edward K. Ream wrote: > I created Leo's beautify commands to have more control over formatting. > But now I've changed my mind. Leo should use ruff format > <https://docs.astral.sh/ruff/formatter/>, a super-fast version of black > <https://github.com/psf/black>. > > ruff format is faster, does a better (more standard) job of formatting, > and is continually being improved. The only drawback is that ruff format > changes all of Leo's sentinel comments. Imo, it's time to pay that one-time > price. > > The deciding factor was seeing that ruff format supports comment pragmas, # > fmt: on, # fmt: off, and # fmt: skip, that simulate Leo's @beautify and > @nobeautify directives. > > PR #4490 <https://github.com/leo-editor/leo-editor/pull/4490> contains > the work. > > Your comments, please. > > Edward > -- You received this message because you are subscribed to the Google Groups "leo-editor" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion visit https://groups.google.com/d/msgid/leo-editor/9b62cbfa-4f44-4110-88ba-5cc47e120807n%40googlegroups.com.
