-
Notifications
You must be signed in to change notification settings - Fork 21
add pull request template (tutorial/tests check) #134
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
base: dev
Are you sure you want to change the base?
Conversation
|
maybe i'm missing something, but does the template mention writing tests? |
yup, added per your feedback. I realized that we have a quite diverse range of people contributing to this project and also maybe first-timers, so mentioning tests here can be useful while keeping the checklsit minimla. (of course writing tests is assumed amongst core contributors and this checklist is used as a mental "list" to go thru) |
|
@cophus @gvarnavi, if you have time, please take about 10s to look at this PR template. The motivation for using
|
|
Thanks for putting this together @bobleesj! This is good, but I don't love the informal tone, and i think we should add some more clarity re: reproducible examples / imported code etc. Perhaps something like the following (loosely inspired from the LiberTEM one)? ## Summary
<!--
Brief description of the motivation and scope of this pull request.
Link to a relevant issue if applicable.
-->
---
## Description of changes
<!--
Describe the main technical, algorithmic, or structural changes introduced here.
-->
---
## Example / reproduction
<!--
Provide a minimal example demonstrating the contribution.
This may be:
- a short code snippet in this PR,
- a notebook or script attached to the PR, or
- a link to an external example.
The goal is to allow reviewers to understand and reproduce the result.
-->
---
## Review guidance
<!--
Indicate any specific aspects that reviewers should focus on
(e.g. correctness, numerical behavior, API design, performance, documentation).
-->
---
## Contributor checklist
- [ ] Tests have been added or updated as appropriate
- [ ] Documentation (docstrings, examples, or tutorials) has been added or updated
- [ ] A minimal working example is provided
- [ ] Any imported or adapted code is compatible with the project license
---
## Reviewer checklist
- [ ] Tests pass and are appropriate for the changes
- [ ] Documentation and examples are sufficient and clear
- [ ] Imported or adapted code has a compatible license
- [ ] The implementation matches the stated intent of the contribution |
|
PS, you should merge |
|
To me, it’s a balance and a cultural choice. I’ve contributed to projects where seeing a PR template with five or more sections makes the barrier feel unnecessarily high, and filling it out can feel robotic, though I understand the intent behind the checklist. I'd suggest we keep That would make it much easier for me (will be a core contributor) to submit a quick PR, iterative quickly on feature branches. |
|
Forgot to mention - in GitHub workflows, as natively designed, we should encourage people to create GitHub issues and PR is meant to close that GitHub issues. Then, the first sentence of the PR can be as simple as "Close #xyz`, followed by demo. |
I don't disagree this is a clean workflow (especially for new contributors!), however I'll be honest and admit that opening an issue for every PR (especially new feature ones) will add burden on core devs.. |
What problem does this PR address?
For each PR, we want to ensure there is a tutorial notebook, tests written.
What should the reviewer(s) do?
Please review the content of the template. This template is currently used at https://github.com/scikit-package/scikit-package and has worked pretty well.