Lines Matching refs:hook
143 def custom_hook(self, hook): argument
145 return shlex.split(self.config.get(self.CUSTOM_HOOKS_SECTION, hook, ''))
153 def builtin_hook_option(self, hook): argument
156 hook, ''))
165 for hook in self.custom_hooks:
166 options = rh.hooks.HookOptions(hook,
167 self.custom_hook(hook),
169 yield (hook, functools.partial(rh.hooks.check_custom,
172 for hook in self.builtin_hooks:
173 options = rh.hooks.HookOptions(hook,
174 self.builtin_hook_option(hook),
176 yield (hook, functools.partial(rh.hooks.BUILTIN_HOOKS[hook],
205 for hook in self.custom_hooks:
206 if not config.get(self.CUSTOM_HOOKS_SECTION, hook):
208 (self.paths, hook))
230 for hook in self.custom_hooks:
232 self.custom_hook(hook)
235 '%s' % (self.paths, hook, e))
238 for hook in self.builtin_hooks:
240 self.builtin_hook_option(hook)
243 (self.paths, hook, e))