Skip to content

DOCS: add links and sections to PR template #18348

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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from

Conversation

brunobeltran
Copy link
Contributor

@brunobeltran brunobeltran commented Aug 24, 2020

PR Summary

Goes on top of #18341, which has been kept separate since everyone has strong opinions about organization. Here's my proposal for how to reorg the checklist:

  1. Break up into sections
  2. Add links to sphinx/numpydoc since we already link to flake.
  3. Add more links to dev docs (e.g. how to make example plots, direct links to READMEs...)

Here's what the checklist looks like with those changes:

PR Checklist

Code:

  • has pytest style unit tests (and pytest passes).
  • is Flake 8 compliant (run flake8 on changed files to check).

New features:

  • are documented, with examples if plot related.
  • have an entry in doc/users/next_whats_new/ (follow instructions in the "What's New" README).

API Changes:

  • are documented in doc/api/next_api_changes/ (follow instructions in the API changes README).

Documentation:

@brunobeltran
Copy link
Contributor Author

@story645 as promised, a separate PR where I take out the "there", and generally clean this up more.

Feel free to insert all of your strong opinions here :)

@story645
Copy link
Member

um the changed file is documenting_mpl.rst 😕

@@ -358,9 +358,20 @@ blocks in source code that explain how the code works.
you may see in the source code. Pull requests updating docstrings to
the current style are very welcome.

All new or edited docstrings should conform to the `numpydoc docstring guide`_.
All new or edited docstrings should conform to the `numpydoc docstring guide`_,
and to the guide below wherever the numpydoc guide is ambiguous.
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
and to the guide below wherever the numpydoc guide is ambiguous.
with the adaptions and clarifications listed below.

In some points we're intentionally deviating from numpydoc, e.g. usage of optional.


.. code-block:: bash

$ flake8 --docstring-convention=all
Copy link
Member

Choose a reason for hiding this comment

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

Why do we have to modify the standards from the .flake8 config file?

All new or edited docstrings should conform to the `numpydoc docstring guide`_.
All new or edited docstrings should conform to the `numpydoc docstring guide`_,
and to the guide below wherever the numpydoc guide is ambiguous.
To quickly check that new docstrings conform to our style guide, run the
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
To quickly check that new docstrings conform to our style guide, run the
To check that new docstrings conform to our style guide, run the

"quickly" - this takes 3min CPU time on my PC.

@jklymak
Copy link
Member

jklymak commented Apr 23, 2021

I'm going to close this as too verbose. But feel free to ask for a re-open if you feel strongly the PR template is poor.

@jklymak jklymak closed this Apr 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants