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

CI, CLN remove unnecessary noqa statements, add CI check #36707

Merged
merged 5 commits into from
Oct 2, 2020

Conversation

MarcoGorelli
Copy link
Member

@MarcoGorelli MarcoGorelli commented Sep 28, 2020

  • passes git diff upstream/master -u -- "*.py" | flake8 --diff

This changes loads of files, but most changes are quite trivial

@jbrockmendel
Copy link
Member

LGTM

@dsaxton
Copy link
Member

dsaxton commented Sep 28, 2020

This changes loads of files, but most changes are quite trivial

Many trivial improvements is a non-trivial improvement 😄

@jbrockmendel jbrockmendel added CI Continuous Integration Clean labels Sep 29, 2020
@jreback jreback added this to the 1.2 milestone Sep 30, 2020
@jreback
Copy link
Contributor

jreback commented Sep 30, 2020

can you rebase just to make sure

@WillAyd
Copy link
Member

WillAyd commented Sep 30, 2020

Are we only down to F401 and F403? If so can we just fix the import machinery and get rid of noqa statements altogether? I think would be preferable to adding another tool to code checks

@MarcoGorelli
Copy link
Member Author

Sure, have merged and pushed

@WillAyd in #36684 Jeff wrote

ideally if we have a script to see these (maybe a grep is enough), and even better to have a code-check, but not sure how heavy handed that is.

Currently it only takes about 4-5 minutes to run all the checks we're doing in pre-commit on the entire codebase, and this one accounts for about 20 seconds.

FWIW, my suggestion would be to keep this in until the import machinery is fixed, and then to remove it once there are no noqas anymore

@jreback
Copy link
Contributor

jreback commented Oct 2, 2020

Are we only down to F401 and F403? If so can we just fix the import machinery and get rid of noqa statements altogether? I think would be preferable to adding another tool to code checks

i don't think a big deal on time; these are on the azure builds and are still faster than travis so nbd.

@jreback jreback merged commit bdd88b9 into pandas-dev:master Oct 2, 2020
@jreback
Copy link
Contributor

jreback commented Oct 2, 2020

thanks @MarcoGorelli

@MarcoGorelli MarcoGorelli deleted the yesqa-precommit branch October 3, 2020 06:20
kesmit13 pushed a commit to kesmit13/pandas that referenced this pull request Nov 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CI Continuous Integration Clean
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants