Menu

#416 Source Formatting: Make selected lines adhere to PEP 8

open
nobody
5
2010-01-15
2010-01-15
starver
No

Feature: Want to select several contiguous lines of code, CTRL+I, and have source formatted IAW PEP 8 or as modified by pydev config settings. Ideally, this would implement all formatting standards like space indention to 4, spaces on operators, etc. Want ability to disable class, function name changes since some do not adhere to standards to match existing libraries. See java editor for example behavior.

Motivation: Am trying to clean up several 1000 lines of legacy code and would like simple formatting rules to be applied to adhere to corporate/group standards, clear pylint complaints, etc. With this functionality, I could select the whole file and be done. If anyone is unsure of the standard, they could use this to fixup their code prior to checkin. If anyone in the group checks in code that does not adhere, it can easily be fixed.

Discussion

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.