How to increase line length in VS Code's pylint

Viewed 1072

I've been using the default python linter in VS Code and would like to increase the line length before the linter decides to break up a line. I've tried adding this to settings.json:

    "python.linting.pylintArgs": [
        "--max-line-length=120",
    ],

but the behavior hasn't changed. It's still breaking lines at 80 columns.

1 Answers

Create .pylintrc and add

[FORMAT]
max-line-length=120

Now you can see the max line length shown in problems has turned to be 120:

enter image description here

Related