Searched refs:hook (Results 1 – 6 of 6) sorted by relevance
/tools/repohooks/rh/ |
D | config.py | 139 def custom_hook(self, hook): argument 141 return shlex.split(self.config.get(self.CUSTOM_HOOKS_SECTION, hook, '')) 149 def builtin_hook_option(self, hook): argument 152 hook, '')) 161 for hook in self.custom_hooks: 162 options = rh.hooks.HookOptions(hook, 163 self.custom_hook(hook), 165 yield (hook, functools.partial(rh.hooks.check_custom, 168 for hook in self.builtin_hooks: 169 options = rh.hooks.HookOptions(hook, [all …]
|
D | results.py | 32 def __init__(self, hook, project, commit, error, files=(), fixup_func=None): argument 47 self.hook = hook 65 def __init__(self, hook, project, commit, result, files=(), argument 67 HookResult.__init__(self, hook, project, commit,
|
D | hooks_unittest.py | 66 for hook in rh.hooks.BUILTIN_HOOKS: 67 self.assertIn('* `%s`:' % (hook,), data, 68 msg='README.md missing docs for hook "%s"' % (hook,)) 280 for hook in rh.hooks.BUILTIN_HOOKS: 281 self.assertIn('test_%s' % (hook,), dir(self), 282 msg='Missing unittest for builtin hook %s' % (hook,))
|
/tools/repohooks/ |
D | README.md | 9 turn on any hook it wishes to enforce. 126 that is executed. The key is used as the name of the hook for reporting purposes, 158 files match in a specific commit, then the hook will be skipped for that commit. 194 * `clang-format`: used for the `clang_format` builtin hook. 195 * `cpplint`: used for the `cpplint` builtin hook. 196 * `git-clang-format`: used for the `clang_format` builtin hook. 197 * `gofmt`: used for the `gofmt` builtin hook. 198 * `google-java-format`: used for the `google_java_format` builtin hook. 199 * `google-java-format-diff`: used for the `google_java_format` builtin hook. 200 * `pylint`: used for the `pylint` builtin hook. [all …]
|
D | pre-upload.py | 272 for name, hook in hooks: 274 hook_results = hook(project, commit, desc, diff)
|
/tools/repohooks/tools/ |
D | pylintrc | 22 #init-hook=
|