What Python formatter do you use for formatting source code?

 I am using autopep8 automatically formats Python code to evolve to the PEP 8 style guide. It uses the pycodestyle utility to work out what parts of the code must be formatted. autopep8 is capable of fixing most of the formatting issues which will be reported by pycodestyle.

How to use autopep8?

Install the latest version of autopep8 from PyPI:

pip install autopep8

Then run autopep8 on one or more files. Autopep8 formats files on the site.

autopep8 --in-place <filename>


Comments

Popular posts from this blog

proassignment help backlink data index 41

Programming shark backlink data index 67

programming shark backink data index 31