-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
CI: fix flake C413, C414, C416 errors #29646
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
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.
lgtm, thanks @simonjayhawkins
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 good overall; can you also pin the flake8-comprehensions
version in the pre-commit
configuration, so it automatically updates for people who've already installed pre-commit
:
pandas/.pre-commit-config.yaml
Line 12 in 4313267
additional_dependencies: [flake8-comprehensions] |
Just need to modify it to be flake8-comprehensions==3.1.0
(maybe >=
would also be okay?)
Thanks @jschendel comments addressed |
@@ -9,7 +9,7 @@ repos: | |||
hooks: | |||
- id: flake8 | |||
language: python_venv | |||
additional_dependencies: [flake8-comprehensions] | |||
additional_dependencies: [flake8-comprehensions>=3.1.0] |
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 should also change in environment.yaml
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.
Thanks @jreback done.
we should merge this, i.e. not wait for the postgres thing to get sorted out |
sure lgtm go for it |
black pandas
git diff upstream/master -u -- "*.py" | flake8 --diff