How to setup working directory in VS Code for pylint?
You can solve this by creating a .env
file in the project root with content:
PYTHONPATH=./src
Add this line in your settings.json
file (in the .vscode
directory).
"python.autoComplete.extraPaths": ["./src"],