VS Code pylint needs pylintrc

Posted
Categories
note
Uses
python vs-code
Tags
editors workflow

Visual Studio Code doesn’t seem to pick up my environment’s PYTHONPATH when running pylint. Makes project-local modules a headache. The solution: put it in your pylint config.

${workspaceFolder}/.pylintrc

[MASTER]
init-hook='import sys; sys.path.append("pylib")'

Okay, I got more planned for today than messing with code. Back to that other stuff.

Got a comment? A question? More of a comment than a question?

Talk to me about this page on: Hacker's Town