{"action":"opened","issue":{"url":"https://api.github.com/repos/pre-commit/pre-commit/issues/293","labels_url":"https://api.github.com/repos/pre-commit/pre-commit/issues/293/labels{/name}","comments_url":"https://api.github.com/repos/pre-commit/pre-commit/issues/293/comments","events_url":"https://api.github.com/repos/pre-commit/pre-commit/issues/293/events","html_url":"https://github.com/pre-commit/pre-commit/issues/293","id":117621278,"number":293,"title":"Add option to pass additional dependencies to hooks","user":{"login":"blarghmatey","id":479088,"avatar_url":"https://avatars.githubusercontent.com/u/479088?v=3","gravatar_id":"","url":"https://api.github.com/users/blarghmatey","html_url":"https://github.com/blarghmatey","followers_url":"https://api.github.com/users/blarghmatey/followers","following_url":"https://api.github.com/users/blarghmatey/following{/other_user}","gists_url":"https://api.github.com/users/blarghmatey/gists{/gist_id}","starred_url":"https://api.github.com/users/blarghmatey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/blarghmatey/subscriptions","organizations_url":"https://api.github.com/users/blarghmatey/orgs","repos_url":"https://api.github.com/users/blarghmatey/repos","events_url":"https://api.github.com/users/blarghmatey/events{/privacy}","received_events_url":"https://api.github.com/users/blarghmatey/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-11-18T16:13:53Z","updated_at":"2015-11-18T16:13:53Z","closed_at":null,"body":"I am currently working on implementing this framework and one of the things I am trying to run is eslint. As part of that I have a number of plugins that are in my configuration file. I think that, rather than forcing anyone who is using plugins to create a new hook definition with a corresponding package.json it might be useful to add a global option to pass a list of dependencies in the configuration file.\r\n\r\nFor instance, something lilke this:\r\n```yaml\r\n-   repo: https://github.com/pre-commit/mirrors-eslint\r\n    sha: 135f285caf8e6e886b28c8e98fdff402b69c4490\r\n    hooks:\r\n    -   id: eslint\r\n        language_version: '0.12.7'\r\n        dependencies: [eslint-plugin-react, eslint-plugin-html]\r\n```\r\nand have those dependencies installed into the generated environment for that language.\r\n\r\nI am going to work on implementing this in my forked repo but would like feedback on whether this is a desired feature or any implementation advice on how best to facilitate this."}}