Replies: 1 comment
|
@j178 Don’t you think it might be a bit clearer to use |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Summary
prek runcan select hooks by hook ID, project path, or group, but it cannot select every configured hook from the same hook repository. Add--repo <REPO>so users can run hooks by their configuredrepowithout listing each hook ID or adding a group solely for an ad hoc run.Proposed behavior
--reposhould accept:localfor hooks defined directly in the repository.metafor built-in meta hooks.builtinforprek's built-in fast hooks.https://github.com/pre-commit/pre-commit-hooks.OWNER/REPOSITORYform, such aspre-commit/pre-commit-hooks.Remote matching should use the repository URL independently of
revand select every matching configured hook across all discovered projects. The filter should compose with positional hook or project selectors,--skip, group filters, stage selection, and file selection.Example
Usage
Each command should run only hooks from the selected repository while preserving the existing file and stage behavior of
prek run.Acceptance criteria
prek run --repo <REPO>selects all hooks whose configured repository matches<REPO>.local,meta, andbuiltinare supported explicitly.OWNER/REPOSITORYshorthand are supported.revand works across workspace projects.All reactions