Skip to content

STYLE: upgrade flake8 to version 4+ #45053

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

Merged
merged 4 commits into from
Dec 27, 2021
Merged

STYLE: upgrade flake8 to version 4+ #45053

merged 4 commits into from
Dec 27, 2021

Conversation

MiTo0o
Copy link
Contributor

@MiTo0o MiTo0o commented Dec 24, 2021

@jreback jreback changed the title close Issue45051 STYLE: upgrade flake8 to version 4+ Dec 24, 2021
@MiTo0o
Copy link
Contributor Author

MiTo0o commented Dec 24, 2021

Sorry I'm unfamiliar with the pre-commit run --show-diff-on-failure --color=always --all-files command, which I'm failing. It even fails when i run it locally on the master branch. Can someone explain it to me? Sorry, I'm new to this.

- flake8==3.9.2
- flake8-comprehensions==3.1.0
- flake8==4.0.1
- flake8-comprehensions==3.7.0
- flake8-bugbear==21.3.2
- pandas-dev-flaker==0.2.0
- id: flake8
Copy link
Member

Choose a reason for hiding this comment

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

looks like flake8 v4 no longer works on Cython files (and that if it did before, it was purely by accident) PyCQA/flake8#1482

@jbrockmendel how important is flake8 linting of cython files? Is it OK to remove it, or would you rather have a separate hook for cython linting which pins flake8 at 3.9.2?

Copy link
Member

Choose a reason for hiding this comment

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

id be OK with not having it; i get false-positives about "cimport" all the time

Copy link
Member

Choose a reason for hiding this comment

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

sure, it's a hack anyway - @MiTo0o can you remove these cython flake8 checks too please, as well as their config files?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sounds good, I just pushed some changes, lets see if I pass everything and if it meets your expectations.

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.

Looks good to me, thanks!

@jreback jreback closed this Dec 27, 2021
@jreback jreback reopened this Dec 27, 2021
@jreback jreback added the Code Style Code style, linting, code_checks label Dec 27, 2021
@MarcoGorelli MarcoGorelli added this to the 1.4 milestone Dec 27, 2021
@MarcoGorelli MarcoGorelli merged commit 5606684 into pandas-dev:master Dec 27, 2021
@MiTo0o MiTo0o deleted the issue45051 branch December 30, 2021 02:03
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.

STYLE upgrade flake8 to version 4+
4 participants