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

Handle New PyFlakes Issues #25697

Closed
wants to merge 3 commits into from
Closed

Conversation

WillAyd
Copy link
Member

@WillAyd WillAyd commented Mar 12, 2019

Had some LINT issues pop up in CI with newest released version of PyFlakes which this should handle

@@ -16,4 +16,5 @@ pycodestyle:
- E731, # do not assign a lambda expression, use a def
- C406, # Unnecessary list literal - rewrite as a dict literal.
- C408, # Unnecessary dict call - rewrite as a literal.
- C409 # Unnecessary list passed to tuple() - rewrite as a tuple literal.
- C409, # Unnecessary list passed to tuple() - rewrite as a tuple literal.
- F821 # undefined name (temporarily for type hints)
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'm not actually sure if we want to do this since it would affect all undefined names (not just types) but I couldn't find a way to disambiguate save updating all of the type comments to have an ignore directive. If we wanted to go that route would probably be easier to move forward with some pieces of #25622 but open to thoughts

Copy link
Contributor

Choose a reason for hiding this comment

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

That's unfortunate. I think it's probably better to pin to an older flake8 until #25622 is sorted out.

Copy link
Contributor

@h-vetinari h-vetinari Mar 13, 2019

Choose a reason for hiding this comment

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

FWIW, the other changes in this PR seem worthwhile to me, irrespective of what happens with MyPy/F821.

Copy link
Member

Choose a reason for hiding this comment

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

F821 is a doozy, is one of the checks that frequently catches actual bugs. I’d very much prefer not to ignore it.

Copy link
Member Author

Choose a reason for hiding this comment

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

@jbrockmendel for sure. The solution here is tucked away in #25622 so I'll be splitting that out when the timing is right. Waiting for official drop of Py2 in CI before that can happen

@codecov
Copy link

codecov bot commented Mar 12, 2019

Codecov Report

Merging #25697 into master will not change coverage.
The diff coverage is 100%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master   #25697   +/-   ##
=======================================
  Coverage   91.28%   91.28%           
=======================================
  Files         173      173           
  Lines       52967    52967           
=======================================
  Hits        48351    48351           
  Misses       4616     4616
Flag Coverage Δ
#multiple 89.86% <100%> (ø) ⬆️
#single 41.73% <0%> (ø) ⬆️
Impacted Files Coverage Δ
pandas/io/formats/format.py 97.99% <ø> (ø) ⬆️
pandas/core/dtypes/dtypes.py 96.1% <100%> (ø) ⬆️

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 a8fad16...2f2bffd. Read the comment docs.

1 similar comment
@codecov
Copy link

codecov bot commented Mar 12, 2019

Codecov Report

Merging #25697 into master will not change coverage.
The diff coverage is 100%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master   #25697   +/-   ##
=======================================
  Coverage   91.28%   91.28%           
=======================================
  Files         173      173           
  Lines       52967    52967           
=======================================
  Hits        48351    48351           
  Misses       4616     4616
Flag Coverage Δ
#multiple 89.86% <100%> (ø) ⬆️
#single 41.73% <0%> (ø) ⬆️
Impacted Files Coverage Δ
pandas/io/formats/format.py 97.99% <ø> (ø) ⬆️
pandas/core/dtypes/dtypes.py 96.1% <100%> (ø) ⬆️

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 a8fad16...2f2bffd. Read the comment docs.

@WillAyd WillAyd mentioned this pull request Mar 13, 2019
@jreback jreback added the Code Style Code style, linting, code_checks label Mar 13, 2019
@jreback jreback modified the milestone: 0.25.0 Mar 13, 2019
@WillAyd WillAyd mentioned this pull request Mar 19, 2019
@WillAyd
Copy link
Member Author

WillAyd commented Mar 20, 2019

Superseded by #25789

@WillAyd WillAyd closed this Mar 20, 2019
@WillAyd WillAyd deleted the skip-type-check branch March 20, 2019 01:24
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.

5 participants