mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-17 16:24:40 +04:00
respect aliases in SKIP when installing environments
This commit is contained in:
parent
49f95b9ef3
commit
587c6b97e7
2 changed files with 31 additions and 1 deletions
|
|
@ -420,7 +420,11 @@ def run(
|
|||
return 1
|
||||
|
||||
skips = _get_skips(environ)
|
||||
to_install = [hook for hook in hooks if hook.id not in skips]
|
||||
to_install = [
|
||||
hook
|
||||
for hook in hooks
|
||||
if hook.id not in skips and hook.alias not in skips
|
||||
]
|
||||
install_hook_envs(to_install, store)
|
||||
|
||||
return _run_hooks(config, hooks, skips, args)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue