35

Simple question - but any steps on how to remove pylint from a Windows 10 machine with Python 3.5.2 installed.

I got an old version of pylint installed that's spellchecking on old Python 2 semantics and it's bugging the heck out of me when the squigglies show up in Visual Studio Code.

Gama11
  • 31,714
  • 9
  • 78
  • 100
samuelsaumanchan
  • 617
  • 1
  • 5
  • 10

6 Answers6

54

Open the workspace settings file (select File > Preferences > Settings, then locate Python configuration) and edit this line like this:

"python.linting.pylintEnabled": false

then save the file.

carlfriedrich
  • 2,919
  • 1
  • 15
  • 29
Mahmoud Ayman
  • 541
  • 3
  • 4
32

If you just want to disable pylint then the updated VSCode makes it much more easier.

Just hit CTRL + SHIFT + P > Select linter > Disabled Linter.

Hope this helps future readers.

Pramesh Bajracharya
  • 2,153
  • 3
  • 28
  • 54
  • 2
    for me it was: [Ctrl + Shift + P] > Python: Enable Linting > [Enter] > selection list that shows "on" and "off" – hypothesis Oct 02 '19 at 13:08
10

The question was how to remove python linter, not how to disable it.

In order to remove pylint open Powershell/cmd and type:

pip uninstall pylint
Morfidon
  • 1,469
  • 1
  • 18
  • 34
6

If you still see the problem like "Missing class docstring Pylint(missing-class-docstring" after you tried the ways suggested in this page, it may because your VS Code installed the extension Pylint, you can hit CTRL + SHIFT + X to open your installed extension list, and disable it.

enter image description here

Reed_Xia
  • 1,300
  • 3
  • 17
  • 29
2

I have followed all instructions here, but even though pylint was disabled in the settings and in settings.json, window reloaded and everything, it still showed pylint errors instead of flake8, which I had selected and configured. It turned out I had an extension installed called "Linter" created by Nando Vieira which somehow started to overwrite the linting behaviour of Microsoft's "Python" extension. Disabling the "Linter" extension and reloading the window finally solved the problem.

fratajcz
  • 75
  • 1
  • 10
  • In my case, I had to disable and re-enable pylace and python Microsoft extensions. – rui Dec 26 '22 at 18:41
1

i had this problem but it was fixed with this solution CTRL + SHIFT + P > Selecionar linter > Linter desabilitado.