-
Notifications
You must be signed in to change notification settings - Fork 23
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
use different venv during local development and during cicd #214
Comments
Same |
For most use cases you shouldn't need to explicitly specify a virtual environment path, you can instead activate your environment before running |
Hello @RobertCraigie Thank you for taking the time to reply to this issue. Hereunder the guideline in the |
And the reason I use Pyright installed from the repository and not from And I saw an issue and this issue discussing a race condition, is it related ? |
Ah I see, you're specifically talking about pre-commit. Sorry for the misunderstanding. I'm not sure if there's a great solution here unfortunately, I'm also not familiar with pre-commit anymore as I stopped using it years ago. Would adding your dependencies to the pre-commit config work for you? https://pre-commit.com/#config-additional_dependencies |
ah @copdips maybe this would be helpful? #203 (comment) |
adding deps in pyright pre-commit conf requires us to declare them in 2 places, which I don't feel confortable with... |
Thanks a lot, I didn't know pyright also has |
oh there's no way to specify a |
Hello,
I'm using pyright by is public github action. and I see that pyright has a param
venv
which can specify the venv path, I would like to know that, during the local development, I use venv, it's OK. But during the CICD, I don't use venv, just install everything at system level, in such case, how to keep a singlepyproject.toml
but with different venv ?Does pyright support find automatically the package installation path based on python executable used.
It seems that mypy can do that, we do not need to specify which venv to use, just run
mypy
The text was updated successfully, but these errors were encountered: