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

# noqa removal in code base #29216

Closed
wants to merge 4 commits into from
Closed

Conversation

kaathi524
Copy link
Contributor

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

@kaathi524
Copy link
Contributor Author

kaathi524 commented Oct 25, 2019

As I removed all the # noqa: F401, Build failed "error F401: '*' imported but unused" @WillAyd

@jbrockmendel
Copy link
Member

Some of these are needed to pass our linting. See the output in the "Checks" CI build.

That said, there are some of these (particularly non-specific "noqa"s) that are leftover from olden days and cleaning them up is definitely helpful.

@datapythonista
Copy link
Member

Where is this coming from? Do you have an issue number, or a discussion in some other PR or issue that you want to reference in the description, so we know the context?

@WillAyd
Copy link
Member

WillAyd commented Oct 25, 2019

I don't think we can remove all of these - looks to be some failing CI you can keep around. I'm surprised to only see 10 in CI but maybe that's a good thing...

@WillAyd
Copy link
Member

WillAyd commented Oct 25, 2019

@datapythonista this is a follow up to #29209 and particularly my comment #29209 (comment)

@gfyoung gfyoung added Clean Code Style Code style, linting, code_checks labels Oct 29, 2019
Copy link
Member

@WillAyd WillAyd left a comment

Choose a reason for hiding this comment

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

@kaathi524 to be clear you can't just blanket remove all of these. If you run flake8 locally you will see a lot of failures doing this.

Instead of doing this all at once you can also split into a few PRs to make things easier

@@ -183,4 +183,4 @@ def time_argsort(self, N):
self.array.argsort()


from .pandas_vb_common import setup # noqa: F401 isort:skip
from .pandas_vb_common import setup
Copy link
Member

Choose a reason for hiding this comment

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

These can't be deleted and will still cause errors

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Okay. Will split and fix. @WillAyd

@jbrockmendel
Copy link
Member

@kaathi524 can this be closed in favor of several smaller PRs?

@kaathi524
Copy link
Contributor Author

@kaathi524 can this be closed in favor of several smaller PRs?

Yeah sure. I tried running flake8 in my local setup without removing any 'noqa' but it throwing error.

@datapythonista
Copy link
Member

Thanks @kaathi524, looking forward to the fixes in the smaller PRs. Please reference this PR when you open them, so we can track the discussion.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Clean Code Style Code style, linting, code_checks
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants