Is there any library that takes in your python file as input and does tidy-up (modifies it based on the PEP 8
conventions).
To understand what I am talking about, a JavaScript
analogy is as follows:
Any online editor or library or script would be appreciated.
You can take a look to PythonTidy which is officially working till python2.5 (and seems to be supported in python2.6) :
Cleans up, regularizes, and reformats the text of Python scripts.
This script reads Python code from standard input and writes a revised version to standard output.
pep8.py gives you warnings for violations. Doesn't actually correct though.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With