Reputation: 119
I can't seem to get Python3 linting working in Visual Studio Code (1.20.1).
I'm using a Homebrew installed version of Python 3.6 and updated all the settings correctly (I think). But I'm not seeing anything to indicate when there's an error (I've purposely just tried typing gibberish, etc). Here's my settings:
{
"python.pythonPath": "/usr/local/bin/python3",
"files.autoSave": "afterDelay",
"python.linting.enabled": true,
"python.linting.pep8Enabled": true
}
Thanks!
Upvotes: 2
Views: 1801
Reputation: 158
Enabling python linting in Visual Studio Code will not help by itself, additionally you have to install pep8 itself. You can check for this by typing which pep8
, and if it comes back empty, do pip install pep8
.
If the extension can't find the installed copy of pep8 for some reason, you can provide the path which points to the pep8, as described in the documentation
That would be "python.linting.pep8Path": "<your-pep8-path>"
Upvotes: 1