> I have just created #584: clean up the worst pep8 offenses
> <https://github.com/leo-editor/leo-editor/issues/584>.
I occasionally fix PEP 8 things when I see them, missing spaces after
commas particularly bug me, but I like to keep those changes at least
within a file I'm changing anyway, if not within the part of the file
I'm changing.
I feel that PEP-8 is seen as a place to start, not a set
of commandments that must be obeyed. 80 char line length is
particularly dated in today's monitor-scape.
http://jakevdp.github.io/blog/2017/11/09/exploring-line-lengths-in-python-packages/
Hmm, I guess I don't see any harm in hunting PEP-8 things, but it
wouldn't be a priority for me.
--
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 leo-editor+unsubscribe@googlegroups.com.
To post to this group, send email to leo-e...@googlegroups.com.
Visit this group at https://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.
This passed off the port bow this evening: https://github.com/hayd/pep8radius. I like the approach, applying pep8 only in the vicinity of where one has recently been working.
Just a general reminder for people (like me) who forget this sometimes: the scope of PEP-8 is quite limited:This document gives coding conventions for the Python code comprising the standard library in the main Python distribution
It does not recommend the style for your non-library code, although it is easy to see while people use it for that purpose. Perhaps a 'Leo Code Style Guide', with Edwards deviations from PEP-8, would be useful?
For now, I think Leo's beautify commands are good enough. Note that you can suppress these commands in individual nodes with @nobeautify.