Skip to content

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

@mxr

Description

@mxr

search you tried in the issue tracker

autoupdate silent

describe your actual problem

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

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

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