-
Notifications
You must be signed in to change notification settings - Fork 122
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
Rework CONTRIBUTING file #343
Conversation
Codecov Report
@@ Coverage Diff @@
## master #343 +/- ##
=======================================
Coverage 97.85% 97.85%
=======================================
Files 22 22
Lines 1399 1399
Branches 130 130
=======================================
Hits 1369 1369
Misses 15 15
Partials 15 15 Continue to review full report at Codecov.
|
15e3ac3
to
4248e9a
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good. Only minor changes.
I think the main issue with the current version is that it talks about stdlib unittest and we use twisted.trial
In terms of contributing, maybe as part of this PR we can also add a PR template in which we add a quick checklist for new contributors
- Make sure changes are covered by existing or new tests
- Make sure local test run is green for at least one python version
- Create a file in src/towncrier/newsfragments/
- Make sure all CI tests are green (this is checking all of the above)
My comments about tox are optional.
I think that the current PR is already an improvement over what we have in trunk so it can be merged.
But please consider mentioning that we use trial
and maybe also run not only flake8 but also tox -e flake8,check-manifest,check-newsfragment
Thanks!
Sure! I will change that. Regarding tox, I was thinking about opening another issue about tox itself. IMHO, the
Great idea! 👍 I will add that too.
Thanks. 😊 Let me correct the your above issues first. 😉 |
I've created a first draft in commit 0de1289. Not sure if this is enough. Probably something is missing. Let me know what you think about. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks. Looks good...
But as mentioned over IRC there are broken links
I am using this page to view the rendered version https://github.com/tomschr/towncrier/blob/feature/342-contributing/CONTRIBUTING.rst
You mean probably the lines which contain For the time being, I could replace them. However, if you plan a documentation which goes beyond little READMEs, I would highly recommend to use them. For example, if you think a short user guide could be helpful, we could host the HTML version on ReadTheDocs and link to the rendered version. This would avoid these "broken" links. 😉 |
The main broken link is
But I think that is also best to don't have RST references so that the page looks ok with GitHub rendering. Thanks |
Not sure I understand you correctly. Maybe your definition of "broken" is different than mine. 😉 Can you explain why do see the link as "broken"? The main idea was most of our users will read this text online. They just have to click the text to get redirected. IMHO it's not so important to actually see the link, it's more important that the link is correct. Or do you prefer the link shown literally? Like in this step:
It's possible, but it makes the text longer. |
I've updated the file now, find the latest rendered output in my fork. 🙂 Better? If yes, I can squash the commits into some logical units. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry for being brief.
I tried to comment inline on broken links.
Maybe also add info about the Freenode #twisted-dev IRC channel. Some towncrier devs hang out there.
Thanks!
Thanks. Yes. You can do that before a merge. |
I didn't dig into the details on this but it does seem like you can have internal links in rst on GitHub. https://gist.github.com/ionelmc/e876b73e2001acd2140f#211inline-markup I'll note that several 'regular' links were also broken for me. Both broken in terms of linking to the incorrect place (not valid pages) and in terms of rendering. Anyways, I'll take a look again after the above comments are handled. |
628762d
to
30e2ac1
Compare
Good idea! 👍 I've included it in the file now. The other issues are addres
Done. 🙂 @altendky Kyle, that would be great if you could have a look too! 👍
Hmn, I've checked them and all work for me. 🤔 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@tomschr, thanks for all the work here. I know it takes awhile to write up documentation like this, hence us not having it... until now. :]
I've got a few more suggestions and corrections. I don't like to use other people as my keyboard, but I also don't like to just take over their PRs. I'm game for addressing my own concerns here if you prefer.
Thanks for your help here and elsewhere recently.
Thanks @altendky, your feedback is very appreciated! 👍
Happy to help here. Actually I saw, well, the need when I first made my contribution. 😉
That's perfectly fine! 👍 Thank you and don't worry. I expected that this PR creates some discussion and work. That is natural when you write documentation. It's my daily job, so writing is rewriting. 😉 You found some important issues which I'm very happy you addressed. I already included it. There is only one item in your list that I would like to discuss with you. Maybe I misunderstood your idea.
No problem. 🙂 |
Co-authored-by: Kyle Altendorf <sda@fstab.net>
35932aa
to
02a824b
Compare
I've squashed it and added both of you as co-authors. After looking over it again, the "Ways to communicate and contribute" section could be split into two separate sections: "Ways to communicate" and "Ways to contribute". The idea is to put into the first section the GitHub discussion and the item about IRC. The section about contribution contains the rest. Would that make sense? |
* Address target group * Use CONTRIBUTING.rst for contributors only * Provide step-by-step instructions which can be used as a checklist * Add newsfragment Co-authored-by: Adi Roiban <adiroiban@gmail.com> Co-authored-by: Kyle Altendorf <sda@fstab.net>
a8a8b22
to
2c593b6
Compare
I'm fine with it split or not. Whatever you prefer. I think that I only noticed we had discussions when I was reading through this. I know some people are adamant that discussions can't happen in issues... I'm not so strict and don't know how much value discussions bring vs. issues with a 'question' tag or whatever. But, that's a separate topic from this PR. |
Thanks @altendky for your answer. 👍 I'm fine to leave it as is. If you like the current state, you can merge it. Let me know if you have further changes. Thanks! |
@adiroiban, just checking back to see if your requested change was addressed. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's merge this as this is already a big step.
I did a small update to include info about pre-commit.
I hope we can include check-manifest and check-towncrier as part of the standard pre-commit framework
This PR fixes #342 and contains:
RELEASE.rst
.CONTRIBUTING.rst
:This is just a draft. It's an example how such text could look like. Feel free to suggest improvements.
Some aspects are a bit more verbose; probably advanced developers don't need that. However, not every developer is the same, nor does everybody know about the Git workflow. 😉
It's up to you to decide if this is enough or it should be shortened.