Replies: 1 comment 3 replies
-
You can use execution environment options in your main Pyright configuration ( |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello, everyone. Apologies if this sounds basic—I'm new to Python development. I'm working with microservices and am having trouble configuring Pyright. Pyright cannot locate the
venv
folder for each microservice in the root directory. I want Pyright to use the nearestvenv
or the one I'm using in the terminal for each file.Currently, my workaround is to create a separate
pyproject.toml
for each microservice folder (e.g.,product_service/
) and open the microservice directory in my editor (Zed) instead of the root directory. This setup allows Zed to access thepyproject.toml
configuration for each microservice. However, I'd prefer to maintain a singlepyproject.toml
for the entire project.Is there a way to configure Pyright to correctly locate the
.venv
folder so I can use a singlepyproject.toml
for the whole project instead of having one per microservice?Here's the project structure for reference:
Beta Was this translation helpful? Give feedback.
All reactions