You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
more clarity for pre-commit autoupdate --repos #3695
If no repos match, then no futures are created, so the command exits silently.
$ pre-commit autoupdate --repo https://github.com/pre-commit/pre-comimt-hooks
# exits with 0 and prints nothing
Wondering if it would be clearer to log which passed-in repos don't match any repos in the pre-commit config to make this easier to debug.
slept on this and I think the following should happen (yeah technically a breaking change but tbh it's just an oversight that this was allowed to pass)
any specified --repo that doesn't match any in the config should be an error
Activity
asottile commentedon May 19, 2026
it might (?) be better -- though the usual program usually outputs something on success anyway
mxr commentedon May 19, 2026
To be precise it prints out a log line for each future only.
(doesnotexist has no output since no future is created)
[-]more clarity for `pre-commot autoupdate --repos`[/-][+]more clarity for `pre-commit autoupdate --repos`[/+]asottile commentedon May 28, 2026
slept on this and I think the following should happen (yeah technically a breaking change but tbh it's just an oversight that this was allowed to pass)
any specified
--repothat doesn't match any in the config should be an errormxr commentedon May 28, 2026
sg I opened a PR to log a warning (in the short-term) and another PR to return an error (for 6-12 months later?)
asottile commentedon May 29, 2026
I'm fine to just go straight to error
mxr commentedon May 30, 2026
sure
asottile commentedon Jul 21, 2026
via #3701
chore: Update pre-commit hooks
chore: Update pre-commit hooks
chore: Update pre-commit hooks
chore: Update pre-commit hooks