-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
CI unpin flake8, only run flake8-rst in pre-commit #36722
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 unpin flake8, only run flake8-rst in pre-commit #36722
Conversation
@@ -17,9 +17,8 @@ dependencies: | |||
# code checks | |||
- black=20.8b1 | |||
- cpplint | |||
- flake8<3.8.0 # temporary pin, GH#34150 | |||
- 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.
you can probably remove the pip install of pyflakes>=2.2.0 now.
Turns out this can be simplified - no need for a fork/mirror, we can just pin |
The new pip dependency resolver will become default soon https://discuss.python.org/t/announcement-pip-20-2-release/4863. I tested it earlier. It got stuck if Also
So we probibly need to merge this before pip 20.3 release. |
can you merge master and ping on green. Is there a way to have an option in code_checks.sh that actually runs the appropriate pre-commit hook? that way we have a single source of truth, and you can actually still run them (of course have to avoid running these on the CI from the script as well). |
Sure, done
Have opened #36956 for this |
lgtm. can you merge master. merge on green (just to be sure nothing broken since this). |
thanks @MarcoGorelli |
black pandas
git diff upstream/master -u -- "*.py" | flake8 --diff