python-poetry / python-poetry/poetry
Improve `poetry init` validate
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 FAQ and general documentation and believe that my question is not already covered.
Feature Request
It appears that poetry init does not validate the value to the (Python or dependency) version.
I think it should do an easy to perform format check so that simple mistakes can be noticed and corrected, and ask for re-entry if they are wrong.
Example:

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 with the poetry init entry point and reproduce the prompts using the invalid Python and dependency version values shown in the issue. Trace where those answers are accepted, then add format validation and re-entry for invalid values; done means simple version mistakes are detected before the generated configuration is accepted.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- cli
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100