Skip to content

docs: clarify poetry run and console scripts usage#10984

Open
xu430 wants to merge 2 commits into
python-poetry:mainfrom
xu430:docs-improve-run-and-scripts
Open

docs: clarify poetry run and console scripts usage#10984
xu430 wants to merge 2 commits into
python-poetry:mainfrom
xu430:docs-improve-run-and-scripts

Conversation

@xu430

@xu430 xu430 commented Jul 17, 2026

Copy link
Copy Markdown

Pull Request Check List

Resolves: #9012

  • Added tests for changed code.
  • Updated documentation for changed code.

Add a concrete package layout, CLI argument examples, and common failure
modes for console scripts so newcomers can wire up and run entry points.

Fixes python-poetry#9012

Co-authored-by: Xu Mingxuan <207414859+xu430@users.noreply.github.com>

@sourcery-ai sourcery-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey - I've left some high level feedback:

  • The notes about re-running poetry install after changing scripts now appear in both cli.md and pyproject.md; consider consolidating or cross-referencing them to avoid duplication and keep the guidance in one canonical place.
  • You introduce both the term “console scripts” and the entry-point explanation; it may help to explicitly tie those together (e.g. “console scripts (Python entry points)”) in both files for consistent terminology and easier cross-navigation.
Prompt for AI Agents
Please address the comments from this code review:

## Overall Comments
- The notes about re-running `poetry install` after changing scripts now appear in both `cli.md` and `pyproject.md`; consider consolidating or cross-referencing them to avoid duplication and keep the guidance in one canonical place.
- You introduce both the term “console scripts” and the entry-point explanation; it may help to explicitly tie those together (e.g. “console scripts (Python entry points)”) in both files for consistent terminology and easier cross-navigation.

Sourcery is free for open source - if you like our reviews please consider sharing them ✨
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.

Use consistent “console scripts (entry points)” terminology and keep the
poetry install refresh note canonical in pyproject, with a cross-link from
the poetry run docs.

Co-authored-by: Xu Mingxuan <207414859+xu430@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Improvement of Documentation for Running Scripts with Poetry

1 participant