-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to configure pylint-venv in VS Code? #7
Comments
Looking upon possible solutions inspired from #5 , I am able to configure VS Code by - "python.linting.pylintArgs": [
"--init-hook",
"import sys;sys.path.append('/Users/user/Env/only_aws/lib/python3.7/site-packages');import pylint_venv;pylint_venv.inithook(force_venv_activation=True)"
] I am closing this issue. But also, I would love to know if this behaviour from |
Figuring out solutions involving use of |
You might want to take a look at #9. That might clarify a bit what is going on here? Seem like you pylint is also installed in a virtual environment (thus requiring the |
Hi @jgosmann "python.linting.pylintArgs": [
"--init-hook",
"import sys; sys.path.append('/Users/user/Env/only_aws/lib/python3.7/site-packages')"
] Now, from this observation, I can say that |
This is getting really interesting.
"python.linting.pylintArgs": [
"--init-hook",
"import sys; sys.path.append('/Users/user/Env/only_aws/lib/python3.7/site-packages')"
]
I edited my initial message as well to open VSCode in virtualenv. |
Hello developers
Thanks for this excellent library.
pylint-venv
works all good in command line. I was wondering if there is a way to configure this in VS Code as well.I have configuring VSCode user settings using
pylintArgs
something like this but this does not seem to work.and
Any help on this? Thanks
EDIT: Just open VSCode in
virtualenv
itself. No need to configure anything. Andpylint-venv
works like a charm.The text was updated successfully, but these errors were encountered: