-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
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
Conversation
MiTo0o
commented
Dec 24, 2021
- closes STYLE upgrade flake8 to version 4+ #45051
- tests passed
- Ensure all linting tests pass, see here for how to run them
- bumping version of flake8 and update repo url
Sorry I'm unfamiliar with the |
.pre-commit-config.yaml
Outdated
- 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 |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.