python-poetry / python-poetry/poetry
Prompt before recreating a broken virtualenv
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 34.3k
- Forks
- 2.5k
- Avg merge
- 2d 19h
- Merged PRs (30d)
- 30
Description
- I have searched the issues of this repo and believe that this is not a duplicate.
- I have searched the documentation and believe that my question is not covered.
Feature Request
When poetry detects a broken virtual environment it will currently delete it and recreate it. While that's great, this operation is destructive. In such cases, it would be best to prompt the user before to ensure they are okay with this happening (at least in an interactive context).
It would also be useful to add more details as to what prompts poetry to think that the virtual environment is broken so that the user may try to manually fix the issue.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating Poetry's broken virtual-environment detection and recreation flow, then inspect how interactive prompts are handled. The change is complete when interactive users are warned before deletion and shown why the environment was considered broken, while the non-interactive behavior is defined and covered by tests.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- cli
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100