autopep8

Format Python code according to the PEP 8 style guide.

TLDR

Format a file to stdout, with a custom maximum line length

$ autopep8 [path/to/file.py] --max-line-length [length]
copy

Format a file, displaying a diff of the changes

$ autopep8 --diff [path/to/file]
copy

Format a file in-pace and save the changes

$ autopep8 --in-place [path/to/file.py]
copy

Recursively format all files in a directory in-place and save changes

$ autopep8 --in-place --recursive [path/to/directory]
copy

Copied to clipboard
Cake Defi