Repository navigation
Description
- I have searched the issues of this repo and believe that this is not a duplicate.
Description:
The documentation about running scripts is not clear enough. Despite the usage of the poetry run command being pretty straightforward, the creation of scripts lacks examples and clarity. Both the "run" and "scripts" sections in the documentation provide only a brief explanation of how it works, using terms like "packages" and "modules," which can confuse people who are not completely used to how Python organizes its dependencies. It also lacks examples of file structure and possible errors. Additionally, adding examples of how to run command line arguments from Python scripts would be beneficial to newcomers.
Current Behavior:
The current documentation provides minimal guidance on running scripts with Poetry. It lacks detailed examples and explanations, especially for newcomers or those unfamiliar with Python's dependency organization.
Desired Behavior:
We need the documentation to include more comprehensive examples and explanations for running scripts with Poetry. This should include clearer instructions on creating scripts, explanations of terms used, examples of file structures, handling errors, and incorporating command line arguments.
Use Case:
As a user of Poetry, when attempting to run scripts, I want comprehensive documentation that guides me through the process with clear examples and explanations. This will help me understand how to create and run scripts effectively using Poetry, even if I'm not completely familiar with Python's dependency structure.
Benefits:
- Improved usability: Clearer documentation will make it easier for users, especially newcomers, to understand how to run scripts with Poetry.
- Reduced confusion: Detailed examples and explanations will reduce confusion and errors when users attempt to create and run scripts.
- Enhanced learning: Providing examples of common scenarios, file structures, and error handling will help users learn best practices for working with scripts in a Poetry environment.
Possible Implementation:
Enhance the "run" and "scripts" sections of the documentation with more detailed examples, explanations, and use cases. Include step-by-step guides for creating scripts, handling dependencies, managing file structures, and troubleshooting common issues. Additionally, provide examples of how to incorporate command line arguments into Python scripts using Poetry.
Activity
docs: clarify poetry run and console scripts usage
github-actions commentedon Oct 5, 2026
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.