Recent PRs have:

- Beautified all of Leo's source code files with ruff format.
- Fully integrated ruff format into Leo.
- Improved several of Leo's script helpers used to check git diffs.

ruff format <https://docs.astral.sh/ruff/formatter/> made most of these 
changes automatically, but I have carefully curated the changes to retain 
columnar data.

The first comment of PR #4487 
<https://github.com/leo-editor/leo-editor/pull/4487> (The PR for Leo 6.8.8) 
contains a detailed summary of *all* significant changes made. I won't 
repeat that summary here.

Blackening Leo's sentinels is a prerequisite for using ruff format as Leo's 
own beautifier. The more I use ruff format, the happier I am to have 
retired Leo's legacy beautifier. In retrospect, the old beautifier was an 
embarrassment.

I ate my own dog food during all the recent work. Doing so was important: I 
saw numerous opportunities for improving how Leo interacted with ruff 
format. Imo, all the rough edges are gone.

Was all this work worthwhile? My answer is emphatic "Yes!" For the first 
time, Leo's code base is formatted uniformly in accordance with standard 
Python conventions. Furthermore, retiring Leo's legacy formatter will ease 
the burden on Leo's future devs.

Please keep testing the "devel" branch!

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/5dd2729e-a38d-46a4-98a9-29514ac28f43n%40googlegroups.com.

Reply via email to