I am using a Mac and programming with Python on VS Code. After installing pylint, I had a bunch of warnings and messages. How do I disable these? I know about adding some lines to the pylintrc file, but I don't know where to find it or how to create it on a Mac.
How to disable pylint warnings and messages on Visual Studio Code?
31.5k views Asked by pixelrobin At
2
Fully disable the linting
Here is a link that explain how to do it : Disable Linting on VsCode.
To do so, type
Command + Shift + P
(orCtrl + Shift + P
on PC) in VsCode. This will open a command prompt at the top of the window. Then type the commandPython: Enable Linting
, and selectoff
.Another option is to choose no linter. To do so, open the command prompt with
Command + Shift + P
(orCtrl + Shift + P
on PC), typePython: Select Linter
, and choose the optionDisable Linting
.Disable warnings, but keep errors :
If you want to keep the errors, but disable only the warnings, you can also configure pylint directly from VsCode. Go to the menu
File -> Preferences -> Settings
(Or open directly withCommand + ,
orCtrl + ,
). Then in the search box at the top of the window, search forpylint Args
. Click on the buttonAdd item
and add the line--disable=W
.