Skip to content

CLN: Remove "flake8: noqa" from more files #15867

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

Closed
wants to merge 5 commits into from

Conversation

gfyoung
Copy link
Member

@gfyoung gfyoung commented Apr 2, 2017

Another round of house-cleaning that builds off #15842.

xref #12066 (comment) : the issue remains unresolved, but it does not seem entirely necessary to disable style-checking on the entire file for that IMO.

@codecov
Copy link

codecov bot commented Apr 2, 2017

Codecov Report

Merging #15867 into master will decrease coverage by 0.01%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master   #15867      +/-   ##
==========================================
- Coverage   90.98%   90.97%   -0.02%     
==========================================
  Files         143      143              
  Lines       49449    49449              
==========================================
- Hits        44993    44984       -9     
- Misses       4456     4465       +9
Flag Coverage Δ
#multiple 88.72% <100%> (ø) ⬆️
#single 40.65% <100%> (-0.11%) ⬇️
Impacted Files Coverage Δ
pandas/_version.py 44.65% <ø> (ø) ⬆️
pandas/tseries/common.py 88.09% <100%> (ø) ⬆️
pandas/io/gbq.py 25% <0%> (-58.34%) ⬇️
pandas/core/frame.py 97.56% <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 d1e1ba0...632de71. Read the comment docs.

@codecov
Copy link

codecov bot commented Apr 2, 2017

Codecov Report

Merging #15867 into master will decrease coverage by 0.01%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master   #15867      +/-   ##
==========================================
- Coverage   90.98%   90.97%   -0.02%     
==========================================
  Files         143      143              
  Lines       49449    49449              
==========================================
- Hits        44992    44984       -8     
- Misses       4457     4465       +8
Flag Coverage Δ
#multiple 88.72% <100%> (ø) ⬆️
#single 40.65% <100%> (-0.11%) ⬇️
Impacted Files Coverage Δ
pandas/_version.py 44.65% <ø> (ø) ⬆️
pandas/tseries/common.py 88.09% <100%> (ø) ⬆️
pandas/io/gbq.py 25% <0%> (-58.34%) ⬇️
pandas/core/frame.py 97.56% <0%> (-0.1%) ⬇️
pandas/core/common.py 91.3% <0%> (+0.33%) ⬆️

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 74f527f...0c84926. Read the comment docs.

@@ -4,7 +4,7 @@

import numpy as np

from pandas.types.common import (_NS_DTYPE, _TD_DTYPE,
from pandas.types.common import (_NS_DTYPE, _TD_DTYPE, # noqa
Copy link
Contributor

Choose a reason for hiding this comment

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

actually I think you can just take these out (you may need to import them where they are actually used though)

Copy link
Member Author

Choose a reason for hiding this comment

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

Fair enough. Will remove then.

@jreback jreback added the Code Style Code style, linting, code_checks label Apr 2, 2017
@jreback jreback added this to the 0.20.0 milestone Apr 2, 2017
@gfyoung gfyoung force-pushed the flake8-noqa-clean branch from 632de71 to 0c84926 Compare April 2, 2017 21:24
@@ -589,10 +588,10 @@ def test_string_categorical_index_repr(self):
# short
idx = pd.CategoricalIndex(['a', 'bb', 'ccc'])
if PY3:
expected = u"""CategoricalIndex(['a', 'bb', 'ccc'], categories=['a', 'bb', 'ccc'], ordered=False, dtype='category')"""
expected = u"""CategoricalIndex(['a', 'bb', 'ccc'], categories=['a', 'bb', 'ccc'], ordered=False, dtype='category')""" # noqa
Copy link
Contributor

Choose a reason for hiding this comment

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

thanks @gfyoung yeah we DO want to fix the actual repr at some point (more involved)!

@jreback jreback closed this in 67cc021 Apr 2, 2017
@gfyoung gfyoung deleted the flake8-noqa-clean branch April 3, 2017 00:13
jreback pushed a commit that referenced this pull request Apr 3, 2017
Another round of house-cleaning that builds off #15867.  Likely to be
the last one for now.

Author: gfyoung <[email protected]>

Closes #15872 from gfyoung/flake8-noqa-clean and squashes the following commits:

3e610f5 [gfyoung] CLN: Make pickle_compat.py flake8-able
05e067a [gfyoung] CLN: Make windows.py flake8-able
dc22c0a [gfyoung] CLN: Make clipboards.py flake8-able
90b00f0 [gfyoung] CLN: Make clipboard/__init__.py flake8-able
ccb44cc [gfyoung] CLN: Make engines.py flake8-able
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.

2 participants