Skip to content
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

fix(pyright): use activated virtual environment if possible #3554

Closed
wants to merge 1 commit into from

Conversation

laddertosky
Copy link

Problem:
Pyright will use system python by default, even if we already have a virtual environment activated.

Solution:
Check current if VIRTUAL_ENV exists in environment variable, if so, set the default pythonPath with the binary inside.

Problem:
Pyright will use system python by default, even if we already have
a virtual environment activated.

Solution:
Check current if `VIRTUAL_ENV` exists in environment variable,
if so, set the default pythonPath with the binary inside.
@laddertosky laddertosky requested a review from glepnir as a code owner January 13, 2025 06:30
@laddertosky laddertosky changed the title fix(pyright): Use activated virtual environment if possible fix(pyright): use activated virtual environment if possible Jan 13, 2025
@laddertosky laddertosky marked this pull request as draft January 13, 2025 06:38
@laddertosky
Copy link
Author

update the pr title to match commit lint

@lithammer
Copy link
Collaborator

You know you can reword a commit, right? You don't have to close the pull request and open a new one for every lint failure.

@laddertosky
Copy link
Author

Does this still work for remote commit? I thought git commit --amend only works for local commit.

@justinmk
Copy link
Member

After --amend you need to force-push to your PR branch. Ask chatgpt or similar for more info.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants