Skip to content

WIP: document our guidelines/coding conventions - #2616

Closed
sciunto wants to merge 1 commit into
scikit-image:pre-megamove-integrationfrom
sciunto:guidelines
Closed

sciunto wants to merge 1 commit into
scikit-image:pre-megamove-integrationfrom
sciunto:guidelines

Conversation

@sciunto

@sciunto sciunto commented Apr 14, 2017 •

Copy link
Copy Markdown
Member

@sciunto sciunto added 💬 Discussion 📄 type: Documentation Updates, fixes and additions to documentation 💪 Work in progress labels Apr 14, 2017
Comment thread GUIDELINES.txt Outdated
@@ -0,0 +1,7 @@
Guidelines

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Guidelines & Coding Conventions, perhaps?

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Coding conventions would be great. Especially naming conventions.

Comment thread GUIDELINES.txt
@@ -0,0 +1,7 @@
Guidelines
==========

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Now just to figure out what common pieces of advice we give contributors :)

@sciunto sciunto changed the title WIP: document our guidelines WIP: document our guidelines/coding conventions Apr 15, 2017
Comment thread GUIDELINES.rst.txt Outdated

from skimage import data

img = data.coins()

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This has to be image :)

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

@soupault Please, read my comment: #2538 (comment) and add your point of view :)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Works fine to me either way. :)

@sciunto sciunto added this to the 0.14 milestone May 5, 2017
@sciunto sciunto modified the milestones: 0.14, 0.15 Jan 22, 2018
@sciunto sciunto mentioned this pull request Jun 24, 2018
4 of 7 tasks
@jni

jni commented Jun 24, 2018

Copy link
Copy Markdown
Member

@sciunto I wouldn't consider this dead, just dormant, thanks for awakening it. =) As a first step, I would remove all the copied sections from NumPyDoc and just link to the official guide:

https://numpydoc.readthedocs.io/en/latest/format.html

Overall I think this is a great addition! But I think use image. =P

@sciunto

sciunto commented Oct 28, 2018

Copy link
Copy Markdown
Member Author

I abandon this PR, I'm not motivated to continue on this. If someone else wants to document that, I'll be glad.

@sciunto sciunto modified the milestones: 0.15, 1.0 Jan 19, 2019

@hmaarrfk hmaarrfk left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I feel like most of this is or should be upstreamed. No need to duplicate it here.

Comment thread GUIDELINES.rst.txt Outdated
Docstring
---------

documentation string (docstring) is a string that describes a module,

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Capitalization. Leading space

Comment thread GUIDELINES.rst.txt Outdated
output. Rather than sacrificing the readability of the docstrings, we
have written pre-processors to assist Sphinx_ in its task.

The length of docstring lines should be kept to 75 characters to

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I think this should be removed. This has fallen out of favor in recent years... Let's move on from the 70s

Comment thread GUIDELINES.rst.txt Outdated
If it is not necessary to specify a keyword argument, use
``optional``::

x : int, optional

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I know you all have been adding optional, but I feel like this is the expected default from a keyword argument that has been specified in the signature.

Comment thread GUIDELINES.rst.txt Outdated
demonstrated function, must be explicit.


cumenting classes

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Typo

@sciunto

sciunto commented Sep 12, 2019 •

Copy link
Copy Markdown
Member Author

If you want to continue this PR, feel free! :)

@hmaarrfk

Copy link
Copy Markdown
Member

Not particularly. I guess I didn't see the point that you abbandoned it too.

@jni

jni commented Sep 13, 2019

Copy link
Copy Markdown
Member

Totally into this PR, but there are quite a few changes I'd make. As @hmaarrfk, anything that can be upstreamed, should, by pointing to PEP257 and NumPy's docstring formatting guidelines. I don't have time to do it now but let's leave it open so the work is ready to be picked up by someone.

Comment thread GUIDELINES.rst.txt Resolved
Base automatically changed from master to main February 18, 2021 18:22
@lagru lagru removed this from the 1.0 milestone Aug 18, 2022
@lagru

lagru commented Aug 18, 2022

Copy link
Copy Markdown
Member

I'm slowly going through the 1.0 milestone. Removing this from 1.0 as this is more a general documentation improvement and not specific to a release.

@matthew-brett
matthew-brett changed the base branch from main to pre-megamove-integration June 19, 2026 15:17
@matthew-brett

Copy link
Copy Markdown
Contributor

We have changed the base branch for this PR from the main branch to the pre-megamove-integration branch.

Summary - what this means for your PR

You can continue to work on your PR, now based on pre-megamove-integration. You should update your branch to the current state of pre-megamove-integration (this is what the Github "Update branch" button does). Please do not merge the scikit-image main branch into your PR branch.

Once we've merged your PR into the pre-megamove-integration branch, we'll update your changes for Megamove, and merge into the main branch.

In addition - our automated script detected that your branch had merge conflicts with the pre-Megamove branch. Please make sure to merge in the pre-megamove-integration branch, and resolve the merge conflicts in the way that you want.

Read on for the Megamove rationale, and more detailed instructions.

Details

Rationale

We've changed the base branch to make it easier and smoother to continue to work on your PR, while we work through a rather large change in the directory structure of the repository - a change that we have called Megamove.

See the Megamove explanation issue for more detail.

Changing the base branch means you do not see merge conflicts related to the Megamove change, and can continue to work with the repository in its original state, without worrying about porting those changes across to the new post-Megamove structure.

As you'll see in the linked issue, you can continue to work on your PR as before, and you can continue to use the Github GUI to "Update branch" - this updates from the new pre-megamove-integration branch. However, there is one caveat: please, do not try and merge the scikit-image main branch into this one, but instead, keep track of the pre-megamove-integration branch. The issue explains more.

To emphasize again, do not try and merge the scikit-image main branch. You will get Megamove related merge conflicts that are rather tricky to resolve correctly.

When we've approved your PR, we'll merge into the pre-megamove-integration branch, and then process it so we can merge it into the main branch. We'll let you know when we've merged your PR changes into main.

Any questions, please reply here.

@sciunto sciunto closed this by deleting the head repository Jul 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants