Skip to content

STYLE: Isort __init__ files #26749

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

Merged
merged 19 commits into from
Jun 28, 2019
Merged

STYLE: Isort __init__ files #26749

merged 19 commits into from
Jun 28, 2019

Conversation

alimcmaster1
Copy link
Member

BlockManager, SingleBlockManager, create_block_manager_from_arrays,
create_block_manager_from_blocks)
from .managers import \
concatenate_block_managers # noqa:F401; reshape.concat, reshape.merge
Copy link
Contributor

Choose a reason for hiding this comment

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

why do you have these separated? don't use \ for conuation, use parens

concatenate_block_managers # noqa:F401; reshape.concat, reshape.merge
from .managers import items_overlap_with_suffix # reshape.merge

from .blocks import _block_shape # noqa:F401; io.pytables
Copy link
Contributor

Choose a reason for hiding this comment

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

why would this be after the others? (and why don't you have .blocks all in one)

setup.cfg Outdated
pandas/_libs/tslibs/__init__.py
pandas/util/__init__.py
pandas/arrays/__init__.py
pandas/io/msgpack/__init__.py
Copy link
Contributor

Choose a reason for hiding this comment

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

extra line needed

@jreback jreback added the Code Style Code style, linting, code_checks label Jun 9, 2019
@codecov
Copy link

codecov bot commented Jun 10, 2019

Codecov Report

Merging #26749 into master will decrease coverage by <.01%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master   #26749      +/-   ##
==========================================
- Coverage    91.7%   91.69%   -0.01%     
==========================================
  Files         179      179              
  Lines       50767    50776       +9     
==========================================
+ Hits        46555    46560       +5     
- Misses       4212     4216       +4
Flag Coverage Δ
#multiple 90.29% <100%> (ø) ⬆️
#single 41.21% <100%> (-0.08%) ⬇️
Impacted Files Coverage Δ
pandas/_libs/__init__.py 100% <ø> (ø) ⬆️
pandas/compat/numpy/__init__.py 93.1% <100%> (ø) ⬆️
pandas/core/internals/__init__.py 100% <100%> (ø) ⬆️
pandas/core/arrays/__init__.py 100% <100%> (ø) ⬆️
pandas/api/types/__init__.py 100% <100%> (ø) ⬆️
pandas/_libs/tslibs/__init__.py 100% <100%> (ø) ⬆️
pandas/api/extensions/__init__.py 100% <100%> (ø) ⬆️
pandas/io/clipboard/__init__.py 54.34% <100%> (ø) ⬆️
pandas/io/excel/__init__.py 100% <100%> (ø) ⬆️
pandas/io/gbq.py 78.94% <0%> (-10.53%) ⬇️
... and 1 more

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 c7748ca...6b797a2. Read the comment docs.

@codecov
Copy link

codecov bot commented Jun 10, 2019

Codecov Report

Merging #26749 into master will decrease coverage by 0.34%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master   #26749      +/-   ##
==========================================
- Coverage   92.05%   91.71%   -0.35%     
==========================================
  Files         180      178       -2     
  Lines       50726    50775      +49     
==========================================
- Hits        46696    46568     -128     
- Misses       4030     4207     +177
Flag Coverage Δ
#multiple 90.31% <100%> (-0.38%) ⬇️
#single 41.22% <100%> (-0.77%) ⬇️
Impacted Files Coverage Δ
pandas/_libs/__init__.py 100% <ø> (ø) ⬆️
pandas/compat/numpy/__init__.py 93.1% <100%> (ø) ⬆️
pandas/core/arrays/__init__.py 100% <100%> (ø) ⬆️
pandas/api/types/__init__.py 100% <100%> (ø) ⬆️
pandas/_libs/tslibs/__init__.py 100% <100%> (ø) ⬆️
pandas/api/extensions/__init__.py 100% <100%> (ø) ⬆️
pandas/io/clipboard/__init__.py 54.34% <100%> (ø) ⬆️
pandas/tseries/converter.py 0% <0%> (-100%) ⬇️
pandas/io/gbq.py 78.94% <0%> (-21.06%) ⬇️
pandas/io/gcs.py 80% <0%> (-20%) ⬇️
... and 80 more

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 27f9d05...d844d20. Read the comment docs.

@alimcmaster1 alimcmaster1 changed the title Isort __init__ files WIP: Isort __init__ files Jun 10, 2019
@jreback jreback changed the title WIP: Isort __init__ files STYLE: Isort __init__ files Jun 27, 2019
@jreback jreback added this to the 0.25.0 milestone Jun 27, 2019
@pep8speaks
Copy link

pep8speaks commented Jun 28, 2019

Hello @alimcmaster1! Thanks for updating this PR. We checked the lines you've touched for PEP 8 issues, and found:

There are currently no PEP 8 issues detected in this Pull Request. Cheers! 🍻

Comment last updated at 2019-06-28 12:31:59 UTC

@jreback jreback merged commit a272b60 into pandas-dev:master Jun 28, 2019
@jreback
Copy link
Contributor

jreback commented Jun 28, 2019

there are still 3 non-trivial isorts that remain (aside from the asv ones); but these I think require updating the setup.cfg for isort itself to ensure our ordering to avoid circular imports; alternatively we can put some isort ignores in the file (specifically pandas/init.py)

@alimcmaster1
Copy link
Member Author

Thanks for fixing this up @jreback it was on my to do list I promise!

@alimcmaster1 alimcmaster1 deleted the mcmali-isort branch December 25, 2019 20:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Code Style Code style, linting, code_checks
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants