-
-
Notifications
You must be signed in to change notification settings - Fork 147
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
pre-commit update #1150
pre-commit update #1150
Conversation
Black was bumped from 19.10b0 to 22.6.0. Changes in the files are reduced to: - No whitespace at the start and end of a docstring. - All comma separated "lists" (for example in function calls) are now one item per line, regardless if they would fit on one line.
Changed in flake8-print 5.0.0: https://pypi.org/project/flake8-print/
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.
Great PR. Do you know if there's a way we could automate these updates of black etc.?
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.
Sorry, this was supposed to be an approve.
The reason we use fixed versions is to make sure that everyone has the same environment because, as you see from this PR, rules can change between different versions. Second, since rules can change between versions, as I see it automated version bumps would mean either:
So I am not really sure of any useful way to automate this procedure. edit: as a middle ground perhaps it can be part of a post-release job, where after each major release we have the dependencies checked/updated. But I am still not sure if the time spent automating this is worth it, maybe there's premade github workflows. |
Good points. Maybe something like the dependabot which opens PRs to bump the versions, and we can then add to the PRs to fix these issues? But maybe it's not worth pursuing this? |
Opened an issue so we can look into it later 👍 |
(of course, feel free to start looking into this yourself now if you want to) |
* Update to latest versions * Updated Black formatting Black was bumped from 19.10b0 to 22.6.0. Changes in the files are reduced to: - No whitespace at the start and end of a docstring. - All comma separated "lists" (for example in function calls) are now one item per line, regardless if they would fit on one line. * Update error code for "print" Changed in flake8-print 5.0.0: https://pypi.org/project/flake8-print/ * Shorten comment to observe line length codestyle * Install stubs for requests for mypy * Add dependency for mypy dateutil type stubs * Resolve mypy warnings * Add update pre-commit dependencies notice
Reference Issue
closes #1146
The issue identified problems with the outdated fixed versions of the pre-commit file. For me personally, it lead to different issues, so I decided it's probably best to bump all dependencies to their newest versions.
What does this PR implement/fix? Explain your changes.
Update all dependencies used in pre-commit hooks to their most recent version.
Other files have been updated accordingly to pass the new pre-commit tests, this mainly involves:
How should this PR be tested?
Not really sure, installing the latest pre-commit hooks and verifying that it works as expected?