Skip to content

flake8 cleanup #17964

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 5 commits into from
Oct 28, 2017
Merged

flake8 cleanup #17964

merged 5 commits into from
Oct 28, 2017

Conversation

jbrockmendel
Copy link
Member

Entirely aesthetic.

  • closes #xxxx
  • tests added / passed
  • passes git diff upstream/master -u -- "*.py" | flake8 --diff
  • whatsnew entry

@pep8speaks
Copy link

pep8speaks commented Oct 24, 2017

Hello @jbrockmendel! Thanks for updating the PR.

Cheers ! There are no PEP8 issues in this Pull Request. 🍻

Comment last updated on October 27, 2017 at 21:58 Hours UTC

@gfyoung gfyoung added the Clean label Oct 24, 2017
@gfyoung
Copy link
Member

gfyoung commented Oct 24, 2017

Quick question(s): are we not style-checking this file in the first place? If not, why haven't we added it to the list of checked files?

@jbrockmendel
Copy link
Member Author

IIUC its only the diffs that get checked in the CI, so existing flake8 errors pass through.

@gfyoung
Copy link
Member

gfyoung commented Oct 24, 2017

That's not the case, we should be linting the entire repository. However, I think it's because we only lint the pandas/pandas directory, and setup.py is not in that directory. Have a look at lint.sh and see if you can just add a line for that.

We ask that contributors lint the diff because that's what introduces style-check errors on a PR.

@codecov
Copy link

codecov bot commented Oct 24, 2017

Codecov Report

Merging #17964 into master will decrease coverage by 0.01%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master   #17964      +/-   ##
==========================================
- Coverage   91.23%   91.22%   -0.02%     
==========================================
  Files         163      163              
  Lines       50113    50113              
==========================================
- Hits        45723    45714       -9     
- Misses       4390     4399       +9
Flag Coverage Δ
#multiple 89.03% <ø> (ø) ⬆️
#single 40.31% <ø> (-0.06%) ⬇️
Impacted Files Coverage Δ
pandas/io/gbq.py 25% <0%> (-58.34%) ⬇️
pandas/core/frame.py 97.75% <0%> (-0.1%) ⬇️

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 e1dabf3...bf35a27. Read the comment docs.

@codecov
Copy link

codecov bot commented Oct 24, 2017

Codecov Report

Merging #17964 into master will decrease coverage by 0.01%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master   #17964      +/-   ##
==========================================
- Coverage   91.24%   91.23%   -0.02%     
==========================================
  Files         163      163              
  Lines       50168    50168              
==========================================
- Hits        45778    45769       -9     
- Misses       4390     4399       +9
Flag Coverage Δ
#multiple 89.04% <ø> (ø) ⬆️
#single 40.27% <ø> (-0.06%) ⬇️
Impacted Files Coverage Δ
pandas/io/gbq.py 25% <0%> (-58.34%) ⬇️
pandas/core/frame.py 97.75% <0%> (-0.1%) ⬇️

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 dff5109...0fadf75. Read the comment docs.

@jreback
Copy link
Contributor

jreback commented Oct 24, 2017

@gfyoung is right
this is fine if u also update lint.sh

all flake updates should update the checking code (eg for cython flaking)

@jreback jreback added Code Style Code style, linting, code_checks and removed Clean labels Oct 24, 2017
@jreback jreback added this to the 0.22.0 milestone Oct 24, 2017
@jbrockmendel
Copy link
Member Author

OK, just added a clause in ci/lint.sh. I fully expect it to fail for the time being -- is there a mechanism to xfail?

@gfyoung
Copy link
Member

gfyoung commented Oct 25, 2017

@jbrockmendel : Not as far as I know. If you don't mind, why don't you try making a push to patch the remaining issues. If you have problems, remove the lint command from lint.sh, and we can pick it up from where you left off.

@jreback
Copy link
Contributor

jreback commented Oct 25, 2017

OK, just added a clause in ci/lint.sh. I fully expect it to fail for the time being -- is there a mechanism to xfail?

why would you expect a lint on this to fail? isn't that the point here, to make it work?

@jbrockmendel
Copy link
Member Author

why would you expect a lint on this to fail? isn't that the point here, to make it work?

The original PR fixed some but not all of the issues. Following gfyoung's suggestion, I cleaned up the rest of it. So it should now pass.

@jreback
Copy link
Contributor

jreback commented Oct 26, 2017

@jbrockmendel yep looks good now.

Copy link
Member

@gfyoung gfyoung left a comment

Choose a reason for hiding this comment

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

@jreback : if this looks good to you, we can just merge this.

@jreback
Copy link
Contributor

jreback commented Oct 26, 2017

no merging until after the release (except specifically tagged pr)

@jreback
Copy link
Contributor

jreback commented Oct 27, 2017

even though this looks fine, can you rebase (as just added another cython module, indexing.pyx), maybe fine, but just want this to run and go green again.

@jreback jreback merged commit 78c8e17 into pandas-dev:master Oct 28, 2017
@jreback
Copy link
Contributor

jreback commented Oct 28, 2017

thanks!

@jbrockmendel jbrockmendel deleted the setup_flake branch October 30, 2017 16:23
peterpanmj pushed a commit to peterpanmj/pandas that referenced this pull request Oct 31, 2017
No-Stream pushed a commit to No-Stream/pandas that referenced this pull request Nov 28, 2017
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