flake8 – In Visual Studio Code, with pycodestyle, how to set line length error (E501) as a warning?

I am using Visual Studio Code, I am linting the code with flake8 and pycodestyle. I would like the line length error (E501) to be considered as a warning.

So far, the only thing that I could find was to ignore totally E501 with the solution found at this link. The solution was to edit the settings by ignoring totally the line length error:

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

However, it ignores completely the error. What I would like is to set E501 as a warning during the linting process.

Read more here: Source link