Visual studio code suppress pep8 warnings

Either use setup.cfg for single project or change your user settings for all py files.

{
    "python.linting.pycodestyleEnabled": true,
    "python.linting.pycodestyleArgs": [
        "--ignore=E501" 
    ]
}

Before October 2019 all pycodestyle settings were named pep8:

{
    "python.linting.pep8Enabled": true,
    "python.linting.pep8Args": [
        "--ignore=E501" 
    ]
}

I was fighting with this a couple of weeks ago. What I ended up doing was adding a setup.cfg file into the root folder of my project and putting the following in it:

[pep8]
ignore = E501

this worked for me:

"python.linting.flake8Enabled": true,
"python.linting.flake8Args": ["--ignore=E501"]

If you want to change the line length, add this in your User Settings file

{ 
  "python.linting.pep8Enabled": true,
  "python.linting.pep8Args": ["--max-line-length=120" ]
}

previous code was giving me 'EOF' error, so i edited it