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: remove duplicated code check #36642 #36716

Merged
merged 13 commits into from Oct 20, 2020

Conversation

fangchenli
Copy link
Member

@fangchenli fangchenli commented Sep 28, 2020

@dsaxton
Copy link
Member

dsaxton commented Sep 28, 2020

I wonder if it's also possible to move flake8-rst into pre-commit, perhaps as a local hook. Maybe @MarcoGorelli knows?

@fangchenli
Copy link
Member Author

fangchenli commented Sep 29, 2020

xref #34150 flake8-rst is not under active development anymore. It requires flake8<3.8.0

@MarcoGorelli
Copy link
Member

MarcoGorelli commented Sep 29, 2020

Is flake8-rst the only thing blocking us from upgrading flake8? If so, I'd say let's fork it, run it in pre-commit (so it's in its own environment), and no longer pin flake8. Then later we can replace it with a different check (if necessary), but for now this would ensure the same checks will be run

EDIT

taken forward in #36722

@simonjayhawkins simonjayhawkins added the CI Continuous Integration label Sep 29, 2020
@simonjayhawkins simonjayhawkins added this to the 1.2 milestone Sep 29, 2020
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.

Looks good. Comment on potential additional cleanup otherwise lgtm

.github/workflows/ci.yml Show resolved Hide resolved
@WillAyd
Copy link
Member

WillAyd commented Sep 29, 2020

@simonjayhawkins I think should back port?

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.

lgtm

@MarcoGorelli
Copy link
Member

MarcoGorelli commented Oct 8, 2020

Sorry to backtrack, but TBH I'd appreciate if we could wait a little before merging this.

I noticed in #36978 that isort, when run in pre-commit, wasn't picking up .pxd files (which the newest version of isort supports), even though they're picked up when running isort from the terminal*. So first, I think that a version of #36978 which passes both code_checks and pre-commit should be in.

*this is because isort's pre-commit-hooks.yaml specfiies types: [python], while identify picks up .pxd as cython.

@simonjayhawkins
Copy link
Member

@simonjayhawkins I think should back port?

I think better to keep the backport without the newer style checks. If we release 1.2 in November, 1.1.4 maybe the last in the 1.1.x Series. so maybe not that many more regressions to backport now anyhow.

@MarcoGorelli
Copy link
Member

Hi @fangchenli

We now have two separate hooks for isort:

    -   id: isort
        name: isort (python)
    -   id: isort
        name: isort (cython)
        types: [cython]

so IMO it's OK to remove it from code_checks. Can you fetch and merge upstream/master?

Copy link
Member

@MarcoGorelli MarcoGorelli left a comment

Choose a reason for hiding this comment

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

Nice!

@WillAyd
Copy link
Member

WillAyd commented Oct 19, 2020

Can you merge master to get CI green?

@jreback jreback merged commit 5b5f26d into pandas-dev:master Oct 20, 2020
@jreback
Copy link
Contributor

jreback commented Oct 20, 2020

thanks @fangchenli

@fangchenli fangchenli deleted the remove-duplicate-check branch October 21, 2020 00:28
JulianWgs pushed a commit to JulianWgs/pandas that referenced this pull request Oct 26, 2020
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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

CI: Deduplicate linting checks
6 participants