-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Support bumping dependencies in .pre-commit-config.yml #2040
Comments
Duplicate of #1524. |
Shall we merge with #1524 to track in one issue? |
Any news on this? |
Just found this GH action. Could be a workaround. https://github.com/marketplace/actions/pre-commit-autoupdate I haven't tested yet. |
That does not touch |
FWIW with some "creative" https://github.com/scop/hashpipe/blob/eb11f6c676803aeed04181c786e7a1750f882371/.pre-commit-config.yaml |
You can also configure a custom regex manager - renovatebot/renovate#10055 (comment). |
this requires dependency resolution, within the pip recently introduced a |
this was rejected upstream by the way due to various blockers: pre-commit/pre-commit#1351 (comment) you could implement it such that this new mechanic only kicks in if:
|
My workaround is to install the packages using requirements-dev.txt (which is maintained by dependabot) and then run pre-commit local hooks like this:
|
pre-commit is a popular tool for managing git hooks. It has a YAML based config that allows specifying hook-specific dependencies, like so.
When one of these dependencies gets updated in the setup.py for my repositories, I currently have to manually update the version in
.pre-commit-config.yml
: marshmallow-code/marshmallow-jsonapi#286It would be great if Dependabot could automate these updates.
The text was updated successfully, but these errors were encountered: