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

improve documentation for venv and venvPath #1002

Closed
wants to merge 1 commit into from

Conversation

DetachHead
Copy link
Owner

@DetachHead DetachHead commented Jan 18, 2025

fixes #365

flowchart TD
    A{{"are you using vscode?"}} -- YES --> B["use the environment picker in the python extension"]
    A -- NO --> C{{"are you using a virtual environment?"}}
    C -- NO --> E["it should use the correct python interpreter by default, no config required"]
    C -- YES --> D{{"are you launching basedpyright from inside the virtual environment?"}}
    D -- YES --> E
    D -- NO --> F{{"are there other developers working on your project?"}}
    F -- YES --> G{{"is the virtual environment located in the same place on each developer's machine?"}}
    F -- NO --> H["set venv and venvPath in pyproject.toml or pyrightconfig.json"]
    G -- YES --> H
    G -- NO --> I{{"are you using the CLI or the language server?"}}
    I -- CLI --> J["use the --pythonpath CLI argument"]
    I -- language server --> K["set python.pythonPath in your language server config"]
Loading

@DetachHead
Copy link
Owner Author

closing in favor of #1006

@DetachHead DetachHead closed this Jan 24, 2025
@DetachHead DetachHead deleted the improve-venvpath-docs branch January 24, 2025 05:31
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.

import resolution for generic virtual environments
1 participant