Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork7.9k
DOC: consolidated coding guide and added naming conventions table#27213
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
Merged
Uh oh!
There was an error while loading.Please reload this page.
Merged
Changes fromall commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Uh oh!
There was an error while loading.Please reload this page.
Jump to
Jump to file
Failed to load files.
Loading
Uh oh!
There was an error while loading.Please reload this page.
Diff view
Diff view
There are no files selected for viewing
12 changes: 9 additions & 3 deletionsdoc/api/next_api_changes/README.rst
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
214 changes: 49 additions & 165 deletionsdoc/devel/coding_guide.rst
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -8,144 +8,82 @@ Pull request guidelines | ||
<https://docs.github.com/pull-requests/collaborating-with-pull-requests/proposing-changes-to-your-work-with-pull-requests/about-pull-requests>`__ | ||
are the mechanism for contributing to Matplotlib's code and documentation. | ||
We value contributions from people with all levels of experience. In particular, | ||
if this is your first PR not everything has to be perfect. We'll guide you | ||
through the PR process. Nevertheless, please try to follow our guidelines as well | ||
as you can to help make the PR process quick and smooth. If your pull request is | ||
incomplete or a work-in-progress, please mark it as a `draft pull requests <https://docs.github.com/en/github/collaborating-with-pull-requests/proposing-changes-to-your-work-with-pull-requests/about-pull-requests#draft-pull-requests>`_ | ||
on GitHub and specify what feedback from the developers would be helpful. | ||
Please be patient with reviewers. We try our best to respond quickly, but we have | ||
limited bandwidth. If there is no feedback within a couple of days, please ping | ||
us by posting a comment to your PR or reaching out on a :ref:`communication channel <communication-channels>` | ||
Summary for pull request authors | ||
================================ | ||
story645 marked this conversation as resolved. Show resolvedHide resolvedUh oh!There was an error while loading.Please reload this page. | ||
We recommend that you check that your contribution complies with the following | ||
guidelines before submitting a pull request: | ||
.. rst-class:: checklist | ||
*Changes, both new features and bugfixes, should have good test coverage. See | ||
:ref:`testing` formore details. | ||
* Update the :ref:`documentation <pr-documentation>` if necessary. | ||
* All public methods should have informative docstrings with sample usage when | ||
appropriate. Use the :ref:`docstring standards <writing-docstrings>`. | ||
* For high-level plotting functions, consider adding a small example to the | ||
:ref:`examples gallery <gallery>`. | ||
* If you add a major new feature or change the API in a backward-incompatible | ||
way, please document it as described in :ref:`new-changed-api` | ||
* Code should follow our conventions as documented in our :ref:`coding_guidelines` | ||
* When adding or changing public function signatures, add :ref:`type hints <type-hints>` | ||
* When adding keyword arguments, see our guide to :ref:`keyword-argument-processing`. | ||
When opening a pull request on Github, please ensure that: | ||
..rst-class:: checklist | ||
* Changes were made on a :ref:`feature branch <make-feature-branch>`. | ||
* :ref:`pre-commit <pre-commit-hooks>` checks for spelling, formatting, etc pass | ||
* The pull request targets the :ref:`main branch <pr-branch-selection>` | ||
* If your pull request addresses an issue, please use the title to describe the | ||
issue (e.g. "Add ability to plot timedeltas") and mention the issue number | ||
in the pull request description to ensure that a link is created to the | ||
original issue (e.g. "Closes #8869" or "Fixes #8869"). This will ensure the | ||
original issue mentioned is automatically closed when your PR is merged. For more | ||
details, see `linking an issue and pull request <https://docs.github.com/en/issues/tracking-your-work-with-issues/linking-a-pull-request-to-an-issue>`__. | ||
* :ref:`pr-automated-tests` pass | ||
For guidance on creating and managing a pull request, please see our | ||
:ref:`contributing <contributing>` and :ref:`pull request workflow <edit-flow>` | ||
guides. | ||
Summary for pull request reviewers | ||
================================== | ||
.. redirect-from:: /devel/maintainer_workflow | ||
**Please help review and merge PRs!** | ||
If you have commit rights, then you are trusted to use them. Please be patient | ||
and `kind <https://youtu.be/tzFWz5fiVKU?t=49m30s>`__ with contributors. | ||
When reviewing, please ensure that the pull request satisfies the following | ||
requirements before merging it: | ||
Content topics: | ||
@@ -196,61 +134,6 @@ Documentation | ||
* See :ref:`documenting-matplotlib` for our documentation style guide. | ||
.. _pr-labels: | ||
Labels | ||
@@ -330,7 +213,8 @@ Merging | ||
Automated tests | ||
--------------- | ||
Before being merged, a PR should pass the :ref:`automated-tests`. If you are | ||
unsure why a test is failing, ask on the PR or in our :ref:`communication-channels` | ||
.. _pr-squashing: | ||
Oops, something went wrong.
Uh oh!
There was an error while loading.Please reload this page.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.