pre-commit-update instead of no auto-update at all #9714
Labels
area/docs
Documentation issues/improvements
kind/enhancement
Not a bug or feature, but improves usability or performance
Issue Kind
Change in current behaviour
Description
As per this issue and docs, it is obvious that we can't use
pre-commit autoupdate
feature with poetry - but that means manual update every time we want the newest (stable) version of the repo.Impact
As per description, the impact is very clear - pre-commit config that is not manually updated/revisited will get outdated sooner or later...
Workarounds
I came across a blog post that mentioned this with an alternative solution:
So I checked out
pre-commit-update
and it works perfectly for our use case. It is very configurable and you can even use it as a pre-commit hook itself.Minimal example would be:
Which - on commit - would produce:
You can even do all sorts of other things - such as excluding the repo, pin it to a certain tag, use unstable versions - etc.
So my proposal would be to perhaps offer that as an alternative in the docs :)
The text was updated successfully, but these errors were encountered: