fstrings branch: status report

20 views
Skip to first unread message

Edward K. Ream

unread,
Feb 14, 2020, 8:16:21 AM2/14/20
to leo-editor
The fstrings branch contains Leo's new fstringify and beautify commands.

Rev 4c06999 is a major milestone. It marks the end of another phase of testing. This work includes fixing a significant bug in fstringify.

All of Leo's core files have been fstringified and beautified without incident. The changes are stable. That is, redoing the fstringify-files and beautify-files commands produces no new changes.

Yesterday's work revealed some problems:

- [Easy] fstringify-files will sometimes fail on strings when it might succeed with a bit more work.

- [A project] beautify-files doesn't always split strings as well as black does.

Summary

Imo, it's important to make Leo's fstringify and beautify commands work better than the external fstringify and black tools. Leo's fstringify command can easily be improved. I plan to study and possibly use the relevant code from black.

It would be spineless to avoid this work by saying "this work is merely a proof of concept for the TokenOrderGenerator class." Improving the code will benefit all of Leo's users.

As a result, Leo 6.2 b1 may be delayed. So be it.

Edward
Reply all
Reply to author
Forward
0 new messages