sudo python -m easy_install autopep8 # dry run, does not do real changing autopep python_script.py # format the code; it is a good idea to back up your code before executing autopep8 -i python_script.pyPlease note if you run the following command to install autopep8, you may end up getting the wrong package pep8 which check the formatting only.
sudo apt-get install pep8
No comments:
Post a Comment