You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have verified there are no duplicate active or recent bugs, questions, or requests
I have verified that I am using the latest version of the plugin.
Step 2: Describe your environment
Plugin version: 0.14.0
PyCharm/IDEA version: 2021.3.2 Professional Edition
Pylint version: 2.12.2
Step 3: Describe the problem:
Pylint plugin does not set PYTHONATH when running pylint. import-error will be returned for lines that would normally work because they are set in the project interpreter's custom PYTHONPATH. A typical use case is when I am using a git submodule and want to import code from it.
The plugin also does not give a way to manually pass environment variables to the pylint call
Steps to reproduce:
Include code in subdirectory of project, eg. lib
Add lib to pythonpath of interpreter: File -> Settings -> Project -> Python Interpreter -> Cog Icon -> Show All -> Show Paths (last icon in the top bar) -> + Icon -> Select Path of lib. Save settings
Run pylint plugin
You will get import errors for modules in lib
Observed Results:
Import Errors are returned (the swagger_client folder is under api_test/lib in the below screenshots)
Expected Results:
No import errors
The text was updated successfully, but these errors were encountered:
Step 1: Are you in the right place?
Step 2: Describe your environment
2021.3.2 Professional Edition
2.12.2
Step 3: Describe the problem:
Pylint plugin does not set
PYTHONATH
when runningpylint
.import-error
will be returned for lines that would normally work because they are set in the project interpreter's customPYTHONPATH
. A typical use case is when I am using a git submodule and want to import code from it.The plugin also does not give a way to manually pass environment variables to the pylint call
Steps to reproduce:
lib
lib
to pythonpath of interpreter: File -> Settings -> Project -> Python Interpreter -> Cog Icon -> Show All -> Show Paths (last icon in the top bar) -> + Icon -> Select Path oflib
. Save settingslib
Observed Results:
swagger_client
folder is underapi_test/lib
in the below screenshots)Expected Results:
The text was updated successfully, but these errors were encountered: