-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Respect virtualenvs.in-project setting, if .venv is found in project folder #2771
Respect virtualenvs.in-project setting, if .venv is found in project folder #2771
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Couple of comments. Also, would be good to cover these cases in test cases to avoid any regression.
* update docs * add tests
868e822
to
72b88e3
Compare
Co-authored-by: Arun Babu Neelicattu <arun.neelicattu@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor suggestions. Otherwise looks good.
…re checking if .venv folder exists
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missed the documentation in the last pass.
This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
At the moment, when there is a folder called
.venv
within the project folder,poetry
will use it as the path to the venv regardless whethervirtualenvs.in-project
is set totrue
or not. This leads to confusions as described in #1770 and #2756.With this PR poetry will check if
virtualenvs.in-project
is set totrue
if it finds a.venv
folder.Closes: #1770
Closes: #2756