On Mon, Jan 12, 2026 at 3:37 PM Thomas Passin <[email protected]> wrote:
See this page <https://docs.astral.sh/ruff/formatter/#format-suppression>. > You can search Leo's code for *fmt: on*, *fmt: off*, and *fmt: skip*. All > three are useful in various situations. > > > That's all very well but how would we apply fmt: on, etc, when we want to > run ruff from within Leo? > I get that the new workflow is confusing. I'll be documenting the new workflow and settings in the new release notes. The main idea is to use # fmt statements to control ruff format within your Python files. You can then run ruff format outside of Leo. Or within Leo if you set the following settings as shown: *@bool beautify-python-code-on-write = True* *@bool write-black-sentinels = True* You can also specify line length with this setting: *@int black-line-length = 120* I'd be happy to zoom with you about all this if you would like. 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/CAMF8tS2031c27dtYwdYbPQk1R3cfdRb4jywsK%3D21m%3DSqWk7jeg%40mail.gmail.com.
