The autopep8 Package
The autopep8
package "automatically formats Python code to conform to the PEP 8 style guide."
Take these PEP-8 style suggestions with a grain of salt - don't feel obligated to adopt suggestions you don't like.
Reference
http://pep8online.com/ (ALTERNATIVE RESOURCE)
Installation
Usage
First, ensure your code has been committed, because the --in-place
flag will actually modify your files.
Then conduct a style check for a given file:
FYI: the --aggressive
flag enforces a stricter set of style rules, and the --recursive
flag says to check all files in all subdirectories. So here is an alternative command to check all files aggressively:
Last updated