Passed, defaults are updated with any config files in Path to a global pep8 config file if this file doesĭon't look for and apply local config files if not i, -in-place make changes to files in place d, -diff print the diff for the fixed source v, -verbose print verbose messages multiple -v result in more version show program 's version number and exit h, - help show this help message and exit Īutomatically formats Python code to conform to the PEP 8 style guide.įiles files to format or '-' for standard in # To modify a file in place (with aggressive level 2):Īutopep8 - in-place -aggressive -aggressive It uses the pycodestyle utility to determine what parts of the code needs to be formatted. 使用 autopep8 前我们有必要先了解下 PEP 8 – Style Guide for Python CodeĪutopep8 automatically formats Python code to conform to the PEP 8 style guide.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |