Skip to content

Support repos argument for pre-commit clean #2338

@lorenzwalthert

Description

@lorenzwalthert

Sometimes I have a hook env that's not working properly anymore for some reason and I don't want to clean the whole pre-commit cache. In that case, it would be handy to only clean cache for certain repos, e.g along these lines:

pre-commit clean --repos https://github.com/pre-commit/pre-commit-hooks

pre-commit clean has no such documented option and I searched old issues. Would you consider this a valuable addition?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions