Lines Matching full:hooks

49 import rh.hooks
79 self.hooks = None
98 def commit_start(self, hooks, commit, commit_summary): argument
102 hooks: All the hooks to be run for this commit.
114 # Initialize the pending hooks line too.
115 self.hooks = set(hooks)
116 self.num_hooks = len(hooks)
120 """Display the banner for current set of hooks."""
121 pending = ', '.join(x.name for x in self.hooks)
124 f'{self.num_hooks - len(self.hooks)}/{self.num_hooks}] '
134 self.hooks.remove(hook)
143 # Show any hooks still pending.
144 if self.hooks:
195 """Print summary for all the hooks."""
340 """Run the project-specific hooks in the cwd.
346 jobs: How many hooks to run in parallel.
349 commit_list: A list of commits to run hooks against. If None or empty
367 # If the repo has no pre-upload hooks enabled, then just return.
383 # Filter out the hooks to process.
413 # Mix in some settings for our hooks.
422 def run_hooks(hooks): argument
425 for hook in hooks
453 """Run the project-specific hooks in |proj_dir|.
456 project_name: The name of project to run hooks for.
459 jobs: How many hooks to run in parallel.
462 commit_list: A list of commits to run hooks against. If None or empty
489 # Hooks assume they are run from the root of the project.
506 """Run all the hooks
511 jobs: How many hooks to run in parallel.
514 commit_list: A list of commits to run hooks against. If None or empty
594 """Run hooks directly (outside of the context of repo).
613 'hooks get run, since some hooks are project-specific.'
617 help='Run up to this many hooks in parallel. Setting '