1

Something updated recently, and in my python files, vscode now shows over 100 infos. And puts tons of blue squiggly lines under my code. For example one of the infos is

Exactly one space required around assignment pylint(bad-whitespace)

How can I disable these?

Also, here are some photos that show my problem.

enter image description here

enter image description here

I have tried putting

"python.linting.flake8Args": ["--ignore=C"]

in the setting of vscode, but it doesn't work.

rioV8
  • 24,506
  • 3
  • 32
  • 49
Alexander
  • 1,051
  • 1
  • 8
  • 21
  • You can [disable](https://stackoverflow.com/q/40626429/3929826) pylint. But the best idea might be to fix you code. – Klaus D. Dec 06 '21 at 04:19
  • if you like pylint you should change your code, or you could just switch to some other linter. my personal choice would be mypy. – aSaffary Dec 06 '21 at 04:22

2 Answers2

1

Sorry, but you are using pylint, you should take this to ignore the Convention type problem:

 "python.linting.pylintArgs": ["--disable=C"],
Steven-MSFT
  • 7,438
  • 1
  • 5
  • 13
  • This works great. Also for future users make sure to save the settings.json file in vscode since it seems to not automatically save. – Alexander Dec 06 '21 at 21:08
0

Try a find replace with this Regex.

Find:

(\S+)\s*=\s*

Replace:

$1 = 

There is one space at the end of replace. Adjust to take care of named parameters

neves
  • 33,186
  • 27
  • 159
  • 192