Reputation: 1153
I am having flake8 installed and VSCode is able to detect default checks with the squiggly lines. Now, I installed flake8-docstring
but VSCode is not warning on missing docstring.
For example, running below command in powershell, gives expected output.
>> python flake8 abc.py
abc.py:1:1: D100 Missing docstring in public module
But in VSCode, it is not showing the squiggly lines.
Upvotes: 5
Views: 1964
Reputation: 39153
You must configure the extension to use your installed Flake8. Do it in your settings.json with: "flake8.importStrategy": "fromEnvironment",
See the answer above for more details.
Upvotes: 0
Reputation: 9727
Different linter will produce different effects, it is recommended that you use pylint
.
Upvotes: -1
Reputation: 181
In VSCode, press Ctrl + Shift + P
, and type Select Linter:
Then select the linter of your choice, e.g flake8
:
Hope this helps!
Upvotes: -1