mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-01-24 17:59:23 -06:00
Make hooks specify files. Optionally allow config to override manifest.
This commit is contained in:
@@ -38,7 +38,7 @@ class Repository(object):
|
||||
def hooks(self):
|
||||
# TODO: merging in manifest dicts is a smell imo
|
||||
return OrderedDict(
|
||||
(hook['id'], dict(hook, **self.manifest.hooks[hook['id']]))
|
||||
(hook['id'], dict(self.manifest.hooks[hook['id']], **hook))
|
||||
for hook in self.repo_config['hooks']
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user