Leo's beautify command is now pep8 <https://peps.python.org/pep-0008/> compliant, thanks to PR #3057 <https://github.com/leo-editor/leo-editor/pull/3057>, which is now in devel. In particular, this command formats arguments correctly in defs and calls.
This PR reformats all files in leo.core and leo.commands! My pre-commit test script also beautifies these files, so the new code is well-tested. Please report any problems immediately. We have plenty of time before the next release. Edward P.S. Leo's beautify command differs from black <https://github.com/psf/black> as follows: - beautify never changes Leo's sentinel comments. - beautify never splits or joints lines (with the default settings). Black sometimes inserts horrible line breaks. - beautify never converts single-quote strings to double-quote strings. Yes, black does have the --skip-string-normalization command-line option. - beautify doesn't insert extra blank lines at the end of nodes. Technically, this is a pep8 violation, but these extra lines are not Leonine. EKR -- 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 on the web visit https://groups.google.com/d/msgid/leo-editor/252f3cba-21ec-4769-8de6-d9a7e728f47en%40googlegroups.com.
