Examples (4)
Format a file to `stdout`, with a custom maximum line length
autopep8 path/to/file.py --max-line-length lengthFormat a file, displaying a diff of the changes
autopep8 --diff path/to/fileFormat a file in-place and save the changes
autopep8 --in-place path/to/file.pyRecursively format all files in a directory in-place and save changes
autopep8 --in-place --recursive path/to/directorymade by @shridhargupta | data from tldr-pages