title: How do I enable auto code formatting for flake8 in PyCharm
body: <p>I use Tox to run unit tests, with a flake8 command that checks for code formatting errors. Each time I code in PyCharm, I run tox then realise I have a bunch of annoying formatting errors I have to back and manually fix. I would like PyCharm to automatically format the code (according to flake8 google for me each time it auto-saves after I stop typing.</p>
  
  <p>my tox testenv looks like this:</p>
  
  <pre class="lang-lsp prettyprint-override"><code>[testenv:flake8]
  commands=flake8 &lt;my_code_directory&gt;
  deps =     
    flake8==2.4.1    
    flake8-import-order==0.11    
    pep8-naming==0.4.1 
  
  [flake8] 
  max-line-length = 120 
  import-order-style = google
  </code></pre>
  
  <p>Is this possible? Do I have to download a specific plugin somewhere? If not with flake8, what about just PEP-8?</p>