How to complete the PR checklist #111
callumrollo
started this conversation in
Show and tell
Replies: 1 comment
-
Thanks @callumrollo Adding here some detail on pre-commit that you shared that was helpful for me :) After committing new changes on a branch for the first time:
If you get a fail, you should see your file has been changed (red/green colours). |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
When you create a PR, you will be prompted to complete a checklist. Each line of the checklist will render as a checkbox on github. Put an x in the square brackets to make a check like so:
- [x] a complete item
This will render as:
Item by item explanation:
Closes Issue number #xxxx. This will link that issue and automatically close it when the PR is accepted. Most PRs should have an associated Issue. e.g. PR 105 closed Issue 16. The # is what that makes this happen automagically.
We should include tests when adding new code. If an adequate test already exists for the function you are changing, you don't need to add a new one
pre-commit run --all-files
The pre-commit includes stuff like linting. Running it on your machine before commiting will prevent you failing the code-style check
whats-new.rst
If you are adding new functionality, detail it over at whats-new.rst so users will be aware of it.
api.rst
As above in api.rst this adds your function to the map of the package
If any of the checks do not apply to your code, you can delete them when making your PR.
Beta Was this translation helpful? Give feedback.
All reactions