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

fix contributing guidelines #506

Merged
merged 2 commits into from
Sep 6, 2019

Conversation

kne42
Copy link
Member

@kne42 kne42 commented Sep 3, 2019

fix errors in contributing guidelines

closes #357

Copy link
Contributor

@sofroniewn sofroniewn left a comment

Choose a reason for hiding this comment

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

Looks good to me! I'll leave this for a little if @jni wants to comment, then I'll merge

Copy link
Member

@jni jni left a comment

Choose a reason for hiding this comment

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

@kne42 I'd revert the removal of the black config explanation, as I think it's relevant.

@@ -39,7 +39,6 @@ pre-commit install

With help of pre-commit, your future commits to this project will be reformatted with our black configuration,
which includes settings `skip-string-normalization = true` and `max-line-length = 79`.
On the command-line, our configuration would be equivalent to `black -S -l 79 -t py36 --exclude vendored\|_vispy .`.
Copy link
Member

Choose a reason for hiding this comment

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

Why remove this? I think it's very useful for other libraries considering adding black. (such a thing was proposed at scikit-image a few weeks ago)

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 removed it because we have to update it every time we change our black config and right now our config is super long (we exclude like 10 different things)

Copy link
Member Author

Choose a reason for hiding this comment

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

How about I add a reference to the file where these settings are stored instead?

Copy link
Member Author

Choose a reason for hiding this comment

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

Besides, it's not our job to document black; if people are interested in using it, they should look at the official documentation instead.

Copy link
Contributor

Choose a reason for hiding this comment

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

adding a reference to the file where this info is stored sounds like a reasonable compromise to me, especially as the exclude list might continue to change

Copy link
Member

Choose a reason for hiding this comment

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

Great, I'm into the reference idea.

@codecov
Copy link

codecov bot commented Sep 5, 2019

Codecov Report

Merging #506 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #506   +/-   ##
=======================================
  Coverage   78.36%   78.36%           
=======================================
  Files         118      118           
  Lines       12098    12098           
=======================================
  Hits         9480     9480           
  Misses       2618     2618

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 213824b...4ddb726. Read the comment docs.

@sofroniewn sofroniewn merged commit 2787392 into napari:master Sep 6, 2019
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.

Should we add versioneer to development.txt or INSTALL_REQUIRES in setup.py?
3 participants