Visual studio code suppress pep8 warnings

后端 未结 10 1300
滥情空心
滥情空心 2021-01-31 14:52

How can I suppress pep8 warnings, in Visual studio code? What I want to do is to suppress E501 warning I don\'t want to get warnings where my code length is more than 80 chars.

10条回答
  •  花落未央
    2021-01-31 15:29

    I found the answer at https://code.visualstudio.com/docs/python/linting for vscode 1.31.1

    solved it via modify settings.json

    {
        "workbench.iconTheme": "material-icon-theme",
        "workbench.colorTheme": "Material Theme Ocean",
        "git.autofetch": true,
        "python.linting.flake8Args": ["--ignore=E501", "--verbose"]
    }

提交回复
热议问题