title: Programmatic python source formatter
body: <p>I have a large body of python code that needs to have a pep8-compliant style/format imposed on it. There are variants of pep8 that various rules (like <a href="https://github.com/wgen/pep8" rel="nofollow noreferrer">this one by a coworker</a>), but the hardest thing is to deal with splitting too long lines and formatting the modified code.</p>
  
  <p>I've looked up the questions on this:</p>
  
  <ol>
  <li><a href="https://stackoverflow.com/questions/1032393/python-formatter-tool">python-formatter-tool</a></li>
  <li><a href="https://stackoverflow.com/questions/2913324/python-source-formatter-pretty-printer">python-source-formatter-pretty-printer</a></li>
  </ol>
  
  <p>They are from 2009 and 2010. I am hoping that better tools have been developed since then.</p>
  
  <p>I know about PythonTidy which is pretty good but makes lots of code worse, IMHO. Pylint detects formatting errors but does not correct them. Web services are not really relevant to my requirements because I want a tool that can be part of a build.</p>
  
  <p>Does anyone have a recommendation that has not already been covered? Thanks.</p>