quick newbie question: this is my first time looking at a distributed/kubernetes-based codebase. When working on the code of the different services, do you create a python virtualenv for each service?
08/23/2022, 8:49 PM
Excellent question! I did indeed create a virtualenv for every service. I set up
files in every service to configure the pyright/pylance language servers (the latter being the default language server in VSCode). This way the language server should look for a virtualenv for the particular service in the root-level
.Alternatively you can create one big virtualenv with the requirements of every service (since those will more or less use the same versions).
The last option is definitely less involved and works perfectly fine. Hope that helps! 😎