Visual studio code suppress pep8 warnings

后端 未结 10 1392
滥情空心
滥情空心 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:26

    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

提交回复
热议问题