DarkMatter in Cyberspace
  • Home
  • Categories
  • Tags
  • Archives

Format Python Code with autopep8


Install with pip install --user autopep8 or conda install -c conda-forge autopep8.

Preview: autopep8 -d <target_file>.py or autopep8 -d src/**/*.py Here -d means print diff.

Modify: autopep8 -i <target_file>.py, where -i means in place.

More help: autopep8 -h



Published

Jun 8, 2016

Last Updated

Jul 25, 2018

Category

Tech

Tags

  • autopep8 1
  • pep8 1
  • python 136

Contact

  • Powered by Pelican. Theme: Elegant by Talha Mansoor