I'm trying to use vscode with pylint for my Python needs. It works quite well but one thing I don't like is some of the python complaints. E.g:
d
for dict and l
for line.Coding style argument aside, I'd like an option to turn this off. It looks like I can do this with pylint command line option. But I'd like to make it into configuration that can be reflected in vscode.
How can I do that?
You can easily toggle between enabling and disabling your linter. To switch, open the Command Palette (Ctrl+Shift+P) and select the Python: Enable/Disable Linting command. This will populate a dropdown with the current linting state and options to Enable or Disable Python linting.
If you want to disable specific warnings only, this can be done by adding a comment such as # pylint: disable=message-name to disable the specified message for the remainder of the file, or at least until # pylint: enable=message-name .
I found this answer helpful on setting up a config file.
Basically, add the following to a .pylintrc file in your home directory.
[MESSAGES CONTROL]
disable=C0103
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With