Visual studio code suppress pep8 warnings

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

    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
    

提交回复
热议问题