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/6ebd9b6f-932d-4813-ba9c-f6505aed2b49n%40googlegroups.com.

Reply via email to