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

Isort contributing guide #23364

Merged
merged 4 commits into from
Nov 4, 2018
Merged

Isort contributing guide #23364

merged 4 commits into from
Nov 4, 2018

Conversation

alimcmaster1
Copy link
Member

@alimcmaster1 alimcmaster1 mentioned this pull request Oct 26, 2018
2 tasks
Copy link
Member

@jschendel jschendel left a comment

Choose a reason for hiding this comment

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

lgtm in general; a couple small comments

doc/source/contributing.rst Show resolved Hide resolved

isort pandas/io/pytables.py

to automatically format imports correctly. (Note pass the `--recursive` flag to sort all files in a directory)
Copy link
Member

Choose a reason for hiding this comment

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

I'd make the note an additional sentence instead of having it in parenthesis, e.g. something like "The --recursive flag can be passed to sort all files in a directory."

Copy link
Contributor

Choose a reason for hiding this comment

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

Perhaps also note what to do if changes are made by isort. Roughly "This will modify the files in your repository. You can then verify that the changes look correct, git add, commit, and push to your branch."

Copy link
Member Author

Choose a reason for hiding this comment

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

Thanks guys believe I have now addressed both your comments, let me know if you have anything else to add

@jschendel jschendel added the Docs label Oct 26, 2018
@jschendel jschendel added this to the 0.24.0 milestone Oct 26, 2018
@codecov
Copy link

codecov bot commented Oct 26, 2018

Codecov Report

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

Impacted file tree graph

@@           Coverage Diff           @@
##           master   #23364   +/-   ##
=======================================
  Coverage   92.23%   92.23%           
=======================================
  Files         161      161           
  Lines       51197    51197           
=======================================
  Hits        47220    47220           
  Misses       3977     3977
Flag Coverage Δ
#multiple 90.61% <ø> (ø) ⬆️
#single 42.27% <ø> (ø) ⬆️

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 d78bd7a...a06ac97. Read the comment docs.

@datapythonista
Copy link
Member

I'd also add a link to the PEP-8 section about imports. And may be quickly explain what's the expected order.

@jreback
Copy link
Contributor

jreback commented Nov 1, 2018

@alimcmaster1 can you update with the new isort settings

@alimcmaster1
Copy link
Member Author

Yes I’ll be working on this later today

@alimcmaster1
Copy link
Member Author

Thanks all for the comments, ive updated let me know what you think.

To make reviewing easier here is what it looks like :)

@@ -612,6 +612,52 @@ Alternatively, you can install the ``grep`` and ``xargs`` commands via the
`MinGW <http://www.mingw.org/>`__ toolchain, and it will allow you to run the
commands above.

Copy link
Contributor

Choose a reason for hiding this comment

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

can you add a ref tag here.

Copy link
Member Author

Choose a reason for hiding this comment

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

thanks - done

@alimcmaster1
Copy link
Member Author

@datapythonista - thanks have done - let me know what you think - see here

Copy link
Member

@datapythonista datapythonista left a comment

Choose a reason for hiding this comment

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

lgtm, just added a comma (literally), that I think helps understand better that sentence. Thanks @alimcmaster1

doc/source/contributing.rst Outdated Show resolved Hide resolved
Co-Authored-By: alimcmaster1 <alimcmaster1@gmail.com>
@jreback jreback merged commit 0fe97bc into pandas-dev:master Nov 4, 2018
@jreback
Copy link
Contributor

jreback commented Nov 4, 2018

thanks @alimcmaster1

JustinZhengBC pushed a commit to JustinZhengBC/pandas that referenced this pull request Nov 14, 2018
tm9k1 pushed a commit to tm9k1/pandas that referenced this pull request Nov 19, 2018
Pingviinituutti pushed a commit to Pingviinituutti/pandas that referenced this pull request Feb 28, 2019
Pingviinituutti pushed a commit to Pingviinituutti/pandas that referenced this pull request Feb 28, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants