Repository navigation
DOC Clean up the PR checklist - #34239
Conversation
There was a problem hiding this comment.
If I'm not mistaken, CI complains if codecov decreases from main, so it actually requires 100% for new code.
There was a problem hiding this comment.
And in another place in this document, we write we require 90% coverage.
What do you think about removing this entirely from here? People will see it when they check the CI and see not all tests have passed.
StefanieSenger
left a comment
There was a problem hiding this comment.
Yes, that restructuring definitely improves readability. I'm happy about how this goes.
There was a problem hiding this comment.
And in another place in this document, we write we require 90% coverage.
What do you think about removing this entirely from here? People will see it when they check the CI and see not all tests have passed.
There was a problem hiding this comment.
Now that we recommend pre-commit, having information on mypy here may not be very important anymore. I would remove it as well.
There was a problem hiding this comment.
I removed the parts on coverage and mypy here, but I'm not sure if this kind of information should be kept somewhere for (new) maintainers? I would leave this for another follow-up, though.
lisaleemcb
left a comment
There was a problem hiding this comment.
Small wording suggestions
Thank you, @lisaleemcb! I think these are all valid improvements, but could you open a separate PR for those? I would like to keep this PR focused on things related to the PR checklist as much as possible, as the diff is already quite large. |
Co-authored-by: Stefanie Senger <[email protected]>
|
|
||
| .. _coding-guidelines: | ||
|
|
||
| Coding guidelines |
There was a problem hiding this comment.
Something for a follow-up:
The Coding Guidelines are currently part of Developing scikit-learn estimators, but I'd think they rather deserve an own page/section inside the contribution guidelines.
They also contain a subsection about sklearn.utils, which gives some details here and then links to doc/developers/utilities.rst for more details. This could probably be combined into one at some point.
|
I think now everything that is left are pointers to follow-ups. |
|
Two things I also learned on the way:
|
I don't agree but that's fine. |
Why? This line from **Before** opening a PR, make sure that:is formatted like this in the generated <p><strong>Before</strong> opening a PR, make sure that:</p> |
|
If you are participating in the EuroPython/EuroScipy Sprint, we're happy to hear your thoughts on the new version of the PR checklist proposed here. Here is the direct link to see the new version. |
**Before** opening a PR, make sure that:
<p><strong>Before</strong> opening a PR, make sure that:</p>That is a reStructuredText Markup Specification/docutils convention. Not an HTML default or change. |
|
This is relevant Now, how do screen readers support such semantics? And: |
Co-authored-by: Loïc Estève <[email protected]>
There was a problem hiding this comment.
I had a quick look at it and it seems a significant improvement already, so I will set auto-merge.
In an ideal world, I would make it even shorter 1 but I am not sure how easy/achievable this is, so let's merge this improvement already.
Not sure I am a huge fan of the "doc PR" vs "code PR" tabs but let's not delay this much further 😉. My main arguments is that tabs are easy to miss + I would not mind adding two special subsections "Specific points for doc PRs", "Specific points for code PRs". Probably you have thought of this and did not go this way for likely good reasons too 😉.
Footnotes
-
for example inclusion criteria is not relevant for 99.9% of external contributors' PRs. Similarly, adding benchmarks are not relevant for the vast majority of PRs. ↩
Head branch was pushed to by a user without write access
|
Thanks for the PR and fixing my mistakes with GitHub suggestions, let's merge this one then! Feel free to open follow-up PRs for other improvements that were mentioned and that I may have missed. |
Co-authored-by: Stefanie Senger <[email protected]> Co-authored-by: Jérémie du Boisberranger <[email protected]> Co-authored-by: Loïc Estève <[email protected]>
Co-authored-by: Stefanie Senger <[email protected]> Co-authored-by: Jérémie du Boisberranger <[email protected]> Co-authored-by: Loïc Estève <[email protected]>
Co-authored-by: Stefanie Senger <[email protected]> Co-authored-by: Jérémie du Boisberranger <[email protected]> Co-authored-by: Loïc Estève <[email protected]>
Reference Issues/PRs
This plan has been around for a while and it came up again recently here: #34211 (comment)
What does this implement/fix? Explain your changes.
The current version contains too many details and is not very concise. This is an attempt to change that.
I created two different "paths" for contributing code or documentation, and tried to reorder the previous points into BEFORE, WHEN and AFTER opening a PR. The diff is quite large, so it probably makes more sense to look at the rendered docs.
The formulations can still be improved, and there are still some things left to do (see comments below), but I would like to get some feedback on the general structure.
WDYT? @StefanieSenger @virchan @DeaMariaLeon (also tagging @lucyleeow and @lesteve just for reference)
First time contributor introduction
AI usage disclosure
I used AI assistance for:
Any other comments?