PR #4494 <https://github.com/leo-editor/leo-editor/pull/4494> completes (for now) all work relating to the transition to ruff format as Leo's beautifier. It's time for us all to test the new code.
I highly recommend that all Python programmers use ruff format <https://docs.astral.sh/ruff/formatter/> to beautify their code. To do that, you *must* set (in myLeoSettings.leo): *@bool write-black-sentinels = True* Note that the default value (in leoSettings.leo) for this setting is False. *New settings* leoSettings.leo now contains two new settings with defaults as shown: *@string black-toml = None @int black-line-length = None* These result in a default line length of 120, *not *88. Let's not argue about these defaults--you can change them in your myLeoSettings.leo as you please. *Remaining work* I have just created two follow-on issues: - #4495 <https://github.com/leo-editor/leo-editor/issues/4495>: The external files controller should avoid changing c.p if possible. This is a highly annoying issue. I don't know why nobody complained before. - #4496 <https://github.com/leo-editor/leo-editor/issues/4496>: The beautify-on-write setting can be very slow. See the issue for a detailed discussion. *Summary* I highly recommend that all Python programmers use ruff format <https://docs.astral.sh/ruff/formatter/> to beautify their code. To do that, you *must* set (in myLeoSettings.leo): *@bool write-black-sentinels = True* Your questions, comments, bug reports, and suggestions are welcome. 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/35fb02e7-ac6b-440d-a831-7a0aaecb394bn%40googlegroups.com.
