GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — more clarity for `pre-commit autoupdate --repos` · Issue #3695 · pre-commit/pre-commit

more clarity for pre-commit autoupdate --repos #3695

New issue
Copy link
New issue
Copy link
Closed
Closed
more clarity for pre-commit autoupdate --repos#3695
Copy link

Description

@mxr
mxr
opened on May 18, 2026
Issue body actions

search you tried in the issue tracker

autoupdate silent

describe your actual problem

pre-commit autoupdate --repos matches against the passed-in repos here:

pre-commit/pre_commit/commands/autoupdate.py

Line 190 in edad968

if not repos or repo['repo'] in repos

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.

pre-commit --version

pre-commit 4.6.0

Reacted by Vinicius Queiroz

Activity

  1. asottile commented on May 19, 2026

    @asottile
    asottile
    on May 19, 2026
    Member
    More actions

    it might (?) be better -- though the usual program usually outputs something on success anyway

  2. mxr commented on May 19, 2026

    @mxr
    mxr
    on May 19, 2026
    MemberAuthor
    More actions

    To be precise it prints out a log line for each future only.

    $ pre-commit autoupdate --freeze --repo https://github.com/zizmorcore/zizmor-pre-commit --repo https://github.com/sqlfluff/sqlfluff --repo https://github.com/pre-commit/pre-commit-hooks --repo doesnotexist
    [https://github.com/pre-commit/pre-commit-hooks] already up to date!
    [https://github.com/sqlfluff/sqlfluff] updating ec5ed61d83ae336c65c4c15396a23772ce9d2fcc -> 4.2.1 (frozen)
    [https://github.com/zizmorcore/zizmor-pre-commit] updating a4727cbbcd26d7098e96b9cb738169b59711ae51 -> v1.25.2 (frozen)

    (doesnotexist has no output since no future is created)

  3. mxr
    changed the title [-]more clarity for `pre-commot autoupdate --repos`[/-] [+]more clarity for `pre-commit autoupdate --repos`[/+] on May 19, 2026
  4. asottile commented on May 28, 2026

    @asottile
    asottile
    on May 28, 2026
    Member
    More actions

    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

  5. mxr commented on May 28, 2026

    @mxr
    mxr
    on May 28, 2026
    MemberAuthor
    More actions

    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?)

  6. asottile commented on May 29, 2026

    @asottile
    asottile
    on May 29, 2026
    Member
    More actions

    I'm fine to just go straight to error

  7. mxr commented on May 30, 2026

    @mxr
    mxr
    on May 30, 2026
    MemberAuthor
    More actions

    sure

  8. asottile commented on Jul 21, 2026

    @asottile
    asottile
    on Jul 21, 2026
    Member
    More actions

    via #3701

  9. asottile
    closed this as completedon Jul 21, 2026
  10. rlichtenwalter
    added 4 commits that reference this issue on Oct 16, 2026

    chore: Update pre-commit hooks

    177e0e7

    chore: Update pre-commit hooks

    9b3e95a

    chore: Update pre-commit hooks

    7502f47

    chore: Update pre-commit hooks

    134b5b8
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402503 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.