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