Skip to content
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

Github templates #1954

Merged
merged 1 commit into from
Mar 19, 2016
Merged

Github templates #1954

merged 1 commit into from
Mar 19, 2016

Conversation

soupault
Copy link
Member

Addresses #1949 .
Added templates, moved contributing guidelines from the root.

@soupault soupault added the 🔧 type: Maintenance Refactoring and maintenance of internals label Feb 20, 2016
@stefanv
Copy link
Member

stefanv commented Feb 20, 2016

Just double check, I think Josh might have already filed something similar
(sorry, not at a PC right now).
On Feb 20, 2016 11:57 AM, "Egor Panfilov" notifications@github.com wrote:

Addresses #1949 #1949
.

Added templates, moved contributing guidelines from the root.

You can view, comment on, or merge this pull request online at:

#1954
Commit Summary

File Changes

Patch Links:


Reply to this email directly or view it on GitHub
#1954.

@JDWarner
Copy link
Contributor

Nope! I just raised the issue - it's been very busy for me of late, and I
figured I'd leave an easy PR for someone to tackle.
On Feb 20, 2016 2:36 PM, "Stefan van der Walt" notifications@github.com
wrote:

Just double check, I think Josh might have already filed something similar
(sorry, not at a PC right now).
On Feb 20, 2016 11:57 AM, "Egor Panfilov" notifications@github.com
wrote:

Addresses #1949 <
https://github.com/scikit-image/scikit-image/issues/1949>
.

Added templates, moved contributing guidelines from the root.

You can view, comment on, or merge this pull request online at:

#1954
Commit Summary

File Changes

Patch Links:


Reply to this email directly or view it on GitHub
#1954.


Reply to this email directly or view it on GitHub
#1954 (comment)
.

@JDWarner
Copy link
Contributor

Philosophically, I think we need to take a minimal approach to this. These templates are effectively barriers to contribution or even getting bugs reported, which are both behaviors we want to facilitate rather than have another big checklist.

Since this is an important public-facing aspect of our project, I'll be pretty fine grained in my review.

@@ -0,0 +1,19 @@
## Description
[What is wrong? What the expected and current behaviours are?]
Copy link
Contributor

Choose a reason for hiding this comment

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

[What is wrong? How would you expect this to work?]

@vighneshbirodkar
Copy link
Contributor

How are we supporting new feature requests through this ?

@JDWarner
Copy link
Contributor

@vighneshbirodkar Great point. Basically, we have to make it clear nearly all fields are optional using language like "If possible..."

@soupault
Copy link
Member Author

@vighneshbirodkar See my message in #1949 . I'm in favor of the approach where many of the blocks have double meaning/purpose.

@soupault
Copy link
Member Author

@JDWarner thank you very much for reflecting on this! I've made all proposed changes, except one.
I'd insist that the Reference field should be really presented in ISSUE_TEMPLATE. It'll give a good chunk of related information and will be much appreciated for long-lived issues.
Withal, adding this shouldn't be a heavy effort for reporting person, because he or she is expected to work and know something on the topic. Perhaps, this will also perform as a soft filter to very immature and impulsive proposals/requests, which is (in my opinion) not a bad thing to have.

@vighneshbirodkar
Copy link
Contributor

Should we also include a section for attaching images ? Comparison of new and old output makes a lot of things clear.

@soupault
Copy link
Member Author

@vighneshbirodkar
For issues, there is already a mention: ...include example code and image(s)....
For PRs, I'd say that the vast majority of them doesn't really change the old behavour, but rather introduce something new. Those, which usually change it, are mostly related to the backend do not require images at all.

@vighneshbirodkar
Copy link
Contributor

@soupault Then can we somehow request for images when new features are submitted ? I always try to attach the output from the example script

@soupault
Copy link
Member Author

@vighneshbirodkar This should do.

UPD: I take your point, this should help a lot when people are submitting new features. Usually, nobody cares to pin an example of the result to the PR.

@JDWarner
Copy link
Contributor

This LGTM. 👍

## Checklist
[It's fine to submit PRs which are a work in progress! But before they are merged, all PRs should provide:]
- [ ] [PEP8 compliance](https://www.python.org/dev/peps/pep-0008/)
- [ ] Docstrings for all functions
Copy link
Member

Choose a reason for hiding this comment

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

Copy link
Member Author

Choose a reason for hiding this comment

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

I wish Github had internal URL-shortener...

Copy link
Member

Choose a reason for hiding this comment

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

You can link to it within the document and put the full url at the bottom

Copy link
Contributor

Choose a reason for hiding this comment

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

We could, but yikes - perusing the actual standard is equivalent to reading a small book. Intimidating! Perhaps directing them to imitate existing docstrings would be more friendly? "Docstrings for functions, with style consistent across the package" or something similar?

Copy link
Contributor

Choose a reason for hiding this comment

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

I view this more as a getting-started pointer, rather than sending people out with homework ;)

Copy link
Member Author

Choose a reason for hiding this comment

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

@JDWarner I think the style should be actually aligned with numpydoc, not with random skimage example (which can become out-of-date one day).
I agree that the standard is TLDR 😃 , but (at the same time) is a fairly good document.

Copy link
Contributor

Choose a reason for hiding this comment

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

All well and true, but it's our responsibility as maintainers to ensure docstring style is up to date and consistent.

It's a good document, but it's just far and away more than any new contributor needs. If a docstring is subtly incorrect or needs a new feature, again, it's our responsibility to point them in the right direction in the course of the PR.

I do strongly feel we don't want to front load this. I was on the fence about including any links at all.

Copy link
Member Author

Choose a reason for hiding this comment

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

I understand.
Probably the best solution will be to keep the template as is for a while so to see which fields are actually used and which do cause obstacles.
Regarding the docsting guide: it should be better to address the detailed guide in CONTRIBUTING.txt.

@blink1073
Copy link
Member

@JDWarner, how do you feel about us adding something like python -m skimage.util.sysinfo that reports something similar to what IPython.sysinfo() provides: https://github.com/ipython/ipython/blob/master/IPython/utils/sysinfo.py

@JDWarner
Copy link
Contributor

blink1073 👍, that would be worth investigating. Probably in a separate PR, though.

@blink1073
Copy link
Member

What if we linked to this, which demonstrates by example and is the canonical implementation: https://github.com/numpy/numpy/blob/master/doc/example.py


## Checklist
[It's fine to submit PRs which are a work in progress! But before they are merged, all PRs should provide:]
- [ ] Style in [compliance with PEP8](https://www.python.org/dev/peps/pep-0008/)
Copy link
Contributor

Choose a reason for hiding this comment

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

Changing my own mind here, but "Clean style in the spirit of PEP8" might be even better. Mainly considering PEP8 tells us to break it when we feel justified, and it's friendlier than 'compliance'.

@@ -0,0 +1,22 @@
## Description
[What is wrong? How would you expect this to work?]
Copy link
Member

Choose a reason for hiding this comment

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

I would reformulate, maybe "Describe your problem, feature proposal, etc."

@soupault
Copy link
Member Author

@ahojnnes How do you feel about the updated version?

[Please provide general introduction to the issue/proposal.]


## Reproduction
Copy link
Member

Choose a reason for hiding this comment

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

"Reproduction" sounds slightly misplaced here, but I'll let native speakers comment :-)

Copy link
Contributor

Choose a reason for hiding this comment

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

It's not much off, but maybe 'Reproducing the issue' would be better.

Copy link
Member

Choose a reason for hiding this comment

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

or "Attachements"

Copy link
Member

Choose a reason for hiding this comment

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

"Steps to reproduce"?

Copy link
Member Author

Choose a reason for hiding this comment

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

Fine with @stefanv 's version.

@ahojnnes
Copy link
Member

In general, I think, we should keep this as short as possible. Until now, I am not sure if we really had problems with too many incomplete issue reports?

@soupault
Copy link
Member Author

@ahojnnes I suppose the goal is not just to integrate the new technique, but to exploit it to achieve some particular improvements.

@soupault
Copy link
Member Author

All things are done. 👻

@@ -0,0 +1,16 @@
## Description
[Please provide general introduction to the issue/proposal.]
Copy link
Member

Choose a reason for hiding this comment

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

provide a general

@stefanv
Copy link
Member

stefanv commented Feb 29, 2016

I think we're converging. Thanks for your patience with our bike shedding!

@soupault
Copy link
Member Author

@stefanv I hope that the equilibrium has at least couple of words in the templates 😉 .

@stefanv
Copy link
Member

stefanv commented Feb 29, 2016

@soupault If I had my way, very few ;)

@soupault
Copy link
Member Author

One more iteration here 🔨 .

@stefanv
Copy link
Member

stefanv commented Mar 15, 2016

That looks fine to me. Thanks for your patience @soupault !

@soupault
Copy link
Member Author

@JDWarner @blink1073 @ahojnnes Any opinions, gentlemen?

@blink1073
Copy link
Member

Great, thanks @soupault!

blink1073 added a commit that referenced this pull request Mar 19, 2016
@blink1073 blink1073 merged commit 34ae680 into scikit-image:master Mar 19, 2016
@soupault soupault deleted the gh_templates branch March 23, 2016 18:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🔧 type: Maintenance Refactoring and maintenance of internals
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

7 participants