Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Improved 'Making Good PRs' section to improve clarity and maintainability.#1510

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
swastim01 wants to merge10 commits intopython:main
base:main
Choose a base branch
Loading
fromswastim01:improve-doc-hierarchy

Conversation

swastim01
Copy link

@swastim01swastim01 commentedFeb 9, 2025
edited by hugovk
Loading

Improve PR Title Guidelines

Solves:#931

Description

  • Enforced a stricter PR title format to improve clarity and maintainability.
  • Encouraged writing accurate and concise PR titles/descriptions.

These changes aim to enhance the quality of PR titles.


📚 Documentation preview 📚:https://cpython-devguide--1510.org.readthedocs.build/getting-started/pull-request-lifecycle/

@ghost
Copy link

ghost commentedFeb 9, 2025
edited by ghost
Loading

All commit authors signed the Contributor License Agreement.
CLA signed

@hugovk
Copy link
Member

hugovk commentedFeb 9, 2025
edited
Loading

It's hard to review the changes because the section was moved in the page, please could you move it back?

I think it makes sense to keep the original order, where the "quick guide" comes first. (But if we do want to move it up a section, let's do that in a separate PR, with no other textual changes.)

@swastim01
Copy link
Author

Hi, I have done the needful. Please let me know if any other changes are required.

@swastim01swastim01 changed the titleMoved 'Making Good PRs' section up in the hierarchy and clarified its contentImproved 'Making Good PRs' section to improve clarity and maintainability.Feb 9, 2025
.. _good-prs:

Makinggood PRs
MakingGood PRs
Copy link
Member

Choose a reason for hiding this comment

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

Please retain sentence case:https://devguide.python.org/documentation/style-guide/#capitalization

Suggested change
MakingGood PRs
Makinggood PRs

Same applies to the headers below.

swastim01 reacted with thumbs up emoji
#. Proper :ref:`documentation <documenting>` additions/changes should be included.
When creating a pull request, following best practices ensures your contribution is **clear, maintainable, and easy to review**. A well-structured PR improves collaboration and speeds up the review process.

1. **Use a Clear and Structured PR Title**
Copy link
Member

Choose a reason for hiding this comment

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

Can we keep using#. so Sphinx auto-numbers, and we don't need to hardcode?

Suggested change
1. **Use aClear andStructured PRTitle**
#. **Use aclear andstructured PRtitle**

Also please trim trailing spaces, or install pre-commit to do it for you:

https://devguide.python.org/getting-started/setup-building/#install-pre-commit

swastim01 reacted with thumbs up emoji
Copy link
Contributor

Choose a reason for hiding this comment

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

This applies to all points not just this one@swastim01


PR titles often become commit messages, making them **critical for maintainability and searchability**. Follow these guidelines:

**Do:**
Copy link
Member

Choose a reason for hiding this comment

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

swastim01 reacted with thumbs up emoji
…ling spaces using pre-commit, removed blockquotes
your pull request will be put on hold until you fix the formatting issues.
When creating a pull request, following best practices ensures your contribution is **clear, maintainable, and easy to review**. A well-structured PR improves collaboration and speeds up the review process.

1. **Use a Clear and Structured PR Title**
Copy link
Member

Choose a reason for hiding this comment

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

This is general guidance, not specific to Python. I'm not sure it makes sense to give this sort of general guideline: the devguide is more helpful to developers who want to start contributing to Python if it talks specifically about what's special about this project.

erlend-aasland and swastim01 reacted with thumbs up emoji
**Do:**

- Clearly summarize the change in a concise manner.
- Use the **imperative mood** (e.g., "Fix crash in parser" instead of "Fixed a crash in parser").
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe add a link to a better guide/more information? This would be helpful for non English natives.https://en.wikipedia.org/wiki/Imperative_mood

Comment on lines -212 to -214
Pull requests with only code formatting changes are usually rejected. On
the other hand, fixes for typos and grammar errors in documents and
docstrings are welcome.
Copy link
Contributor

Choose a reason for hiding this comment

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

Why remove this note and replace it with a shorter one?

@@ -183,59 +183,93 @@ message. It is usually okay to leave that as-is and close the editor.
See `the merge command's documentation <https://git-scm.com/docs/git-merge>`_
for a detailed technical explanation.


Copy link
Contributor

Choose a reason for hiding this comment

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

Accidentally removed line

swastim01and others added7 commitsFebruary 12, 2025 13:41
Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
@python-cla-bot
Copy link

The following commit authors need to sign the Contributor License Agreement:

CLA signed

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@JelleZijlstraJelleZijlstraJelleZijlstra left review comments

@hugovkhugovkhugovk left review comments

@StanFromIrelandStanFromIrelandStanFromIreland left review comments

Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

4 participants
@swastim01@hugovk@JelleZijlstra@StanFromIreland

[8]ページ先頭

©2009-2025 Movatter.jp