![]() 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 Indentation in multiline strings should not be touched. if bar : bar += 1 bar = bar * bar return bar else : some_string = """ some_tuple = ( 1, 2, 3, 'a' ) some_variable = class Example3 ( object ): def _init_ ( self, bar ): # Comments should have a space after the hash. This should be wrapped to fit within 72 characters. import math, sys def example1 (): #This is a long comment. To modify a file in place (with aggressive level 2): $ autopep8 -in-place -aggressive -aggressive īefore running autopep8.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |