title: Enforce PEP-8 linting and formatting in VS Code (Linux)
body: <p>I'm under a Linux Mint 20 environment and for Python programming I have been using <strong>pyenv</strong>, which is the recommended method to install Python under Linux</p>
  <p>I usually work with VS Code and just recently had the chance to try PyCharm. I was surprised with its linting and formatting capabilities, makes programming really pleasant. However, while in PyCharm I've got all kinds of useful warnings and code is always properly formatted, in VS Code this happens partially only.</p>
  <p>To mention an example, in PyCharm after an import if I only leave one blank line I got this warning:</p>
  <pre><code>PEP 8: E302 expected 2 blank lines, found 1
  </code></pre>
  <p>After formatting the file PyCharm automagically adds the two blank lines. The same pep 8 infraction in VS Code is ignored, no warnings, and after formatting it does nothing.</p>
  <p>I installed all linters and formatter providers available in my virtual environment for testing purposes with no results. This is one of the many configurations that I have tried:</p>
  <pre><code>{
      &quot;python.formatting.provider&quot;: &quot;autopep8&quot;,
      &quot;python.linting.pylintEnabled&quot;: true,
      &quot;python.linting.flake8Enabled&quot;: true,
  }
  </code></pre>
  <p>How can I possibly replicate the excellent linting and formatting from PyCharm in VS Code?</p>
  <p><strong>UPDATE</strong>:</p>
  <p>For my surprise I replicate this configuration under a Windows 10 environment using <strong>pipenv</strong> instead of <strong>pyenv</strong> and I successfully replicated the linting and formatting capabilities from PyCharm in VS Code. I must assume the problem has to do with the OS or pyenv, maybe?</p>