{"action":"created","comment":{"url":"https://api.github.com/repos/pre-commit/pre-commit/pulls/comments/45375589","id":45375589,"diff_hunk":"@@ -57,6 +58,9 @@ def install_environment(repo_cmd_runner, version='default'):\n         repo_cmd_runner.run(venv_cmd)\n         with in_env(repo_cmd_runner, version) as env:\n             env.run(\"cd '{prefix}' && pip install .\")\n+            if additional_dependencies:\n+                env.run(\"cd '{prefix}' && pip install -U\" +","path":"pre_commit/languages/python.py","position":15,"original_position":15,"commit_id":"06b3d91da07c3d895a68baedb9fd2f926a170ee6","original_commit_id":"06b3d91da07c3d895a68baedb9fd2f926a170ee6","user":{"login":"asottile","id":1810591,"avatar_url":"https://avatars.githubusercontent.com/u/1810591?v=3","gravatar_id":"","url":"https://api.github.com/users/asottile","html_url":"https://github.com/asottile","followers_url":"https://api.github.com/users/asottile/followers","following_url":"https://api.github.com/users/asottile/following{/other_user}","gists_url":"https://api.github.com/users/asottile/gists{/gist_id}","starred_url":"https://api.github.com/users/asottile/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/asottile/subscriptions","organizations_url":"https://api.github.com/users/asottile/orgs","repos_url":"https://api.github.com/users/asottile/repos","events_url":"https://api.github.com/users/asottile/events{/privacy}","received_events_url":"https://api.github.com/users/asottile/received_events","type":"User","site_admin":false},"body":"I wouldn't use `--upgrade`, it has a tendency to cause incompatibilities with the libraries installed.  I think `pip install ...` should be sufficient","created_at":"2015-11-19T17:56:15Z","updated_at":"2015-11-19T17:56:15Z","html_url":"https://github.com/pre-commit/pre-commit/pull/295#discussion_r45375589","pull_request_url":"https://api.github.com/repos/pre-commit/pre-commit/pulls/295","_links":{"self":{"href":"https://api.github.com/repos/pre-commit/pre-commit/pulls/comments/45375589"},"html":{"href":"https://github.com/pre-commit/pre-commit/pull/295#discussion_r45375589"},"pull_request":{"href":"https://api.github.com/repos/pre-commit/pre-commit/pulls/295"}}},"pull_request":{"url":"https://api.github.com/repos/pre-commit/pre-commit/pulls/295","id":51254353,"html_url":"https://github.com/pre-commit/pre-commit/pull/295","diff_url":"https://github.com/pre-commit/pre-commit/pull/295.diff","patch_url":"https://github.com/pre-commit/pre-commit/pull/295.patch","issue_url":"https://api.github.com/repos/pre-commit/pre-commit/issues/295","number":295,"state":"open","locked":false,"title":"Added the additional_dependencies config parameter","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},"body":"Added the ability to specify additional dependencies to be installed in\r\nthe pre-commit environment.","created_at":"2015-11-19T17:31:21Z","updated_at":"2015-11-19T17:56:15Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ea1a24cfdc94e6e8d2331eb7b78000ac73e73bf1","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/pre-commit/pre-commit/pulls/295/commits","review_comments_url":"https://api.github.com/repos/pre-commit/pre-commit/pulls/295/comments","review_comment_url":"https://api.github.com/repos/pre-commit/pre-commit/pulls/comments{/number}","comments_url":"https://api.github.com/repos/pre-commit/pre-commit/issues/295/comments","statuses_url":"https://api.github.com/repos/pre-commit/pre-commit/statuses/06b3d91da07c3d895a68baedb9fd2f926a170ee6","head":{"label":"blarghmatey:install_dependencies","ref":"install_dependencies","sha":"06b3d91da07c3d895a68baedb9fd2f926a170ee6","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},"repo":{"id":46430052,"name":"pre-commit","full_name":"blarghmatey/pre-commit","owner":{"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},"private":false,"html_url":"https://github.com/blarghmatey/pre-commit","description":"A framework for managing and maintaining multi-language pre-commit hooks.","fork":true,"url":"https://api.github.com/repos/blarghmatey/pre-commit","forks_url":"https://api.github.com/repos/blarghmatey/pre-commit/forks","keys_url":"https://api.github.com/repos/blarghmatey/pre-commit/keys{/key_id}","collaborators_url":"https://api.github.com/repos/blarghmatey/pre-commit/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/blarghmatey/pre-commit/teams","hooks_url":"https://api.github.com/repos/blarghmatey/pre-commit/hooks","issue_events_url":"https://api.github.com/repos/blarghmatey/pre-commit/issues/events{/number}","events_url":"https://api.github.com/repos/blarghmatey/pre-commit/events","assignees_url":"https://api.github.com/repos/blarghmatey/pre-commit/assignees{/user}","branches_url":"https://api.github.com/repos/blarghmatey/pre-commit/branches{/branch}","tags_url":"https://api.github.com/repos/blarghmatey/pre-commit/tags","blobs_url":"https://api.github.com/repos/blarghmatey/pre-commit/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/blarghmatey/pre-commit/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/blarghmatey/pre-commit/git/refs{/sha}","trees_url":"https://api.github.com/repos/blarghmatey/pre-commit/git/trees{/sha}","statuses_url":"https://api.github.com/repos/blarghmatey/pre-commit/statuses/{sha}","languages_url":"https://api.github.com/repos/blarghmatey/pre-commit/languages","stargazers_url":"https://api.github.com/repos/blarghmatey/pre-commit/stargazers","contributors_url":"https://api.github.com/repos/blarghmatey/pre-commit/contributors","subscribers_url":"https://api.github.com/repos/blarghmatey/pre-commit/subscribers","subscription_url":"https://api.github.com/repos/blarghmatey/pre-commit/subscription","commits_url":"https://api.github.com/repos/blarghmatey/pre-commit/commits{/sha}","git_commits_url":"https://api.github.com/repos/blarghmatey/pre-commit/git/commits{/sha}","comments_url":"https://api.github.com/repos/blarghmatey/pre-commit/comments{/number}","issue_comment_url":"https://api.github.com/repos/blarghmatey/pre-commit/issues/comments{/number}","contents_url":"https://api.github.com/repos/blarghmatey/pre-commit/contents/{+path}","compare_url":"https://api.github.com/repos/blarghmatey/pre-commit/compare/{base}...{head}","merges_url":"https://api.github.com/repos/blarghmatey/pre-commit/merges","archive_url":"https://api.github.com/repos/blarghmatey/pre-commit/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/blarghmatey/pre-commit/downloads","issues_url":"https://api.github.com/repos/blarghmatey/pre-commit/issues{/number}","pulls_url":"https://api.github.com/repos/blarghmatey/pre-commit/pulls{/number}","milestones_url":"https://api.github.com/repos/blarghmatey/pre-commit/milestones{/number}","notifications_url":"https://api.github.com/repos/blarghmatey/pre-commit/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/blarghmatey/pre-commit/labels{/name}","releases_url":"https://api.github.com/repos/blarghmatey/pre-commit/releases{/id}","created_at":"2015-11-18T16:02:45Z","updated_at":"2015-11-18T16:02:45Z","pushed_at":"2015-11-19T17:30:40Z","git_url":"git://github.com/blarghmatey/pre-commit.git","ssh_url":"git@github.com:blarghmatey/pre-commit.git","clone_url":"https://github.com/blarghmatey/pre-commit.git","svn_url":"https://github.com/blarghmatey/pre-commit","homepage":null,"size":545,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"pre-commit:master","ref":"master","sha":"ef8b39df29daf45620e34008934db087dedfb688","user":{"login":"pre-commit","id":6943086,"avatar_url":"https://avatars.githubusercontent.com/u/6943086?v=3","gravatar_id":"","url":"https://api.github.com/users/pre-commit","html_url":"https://github.com/pre-commit","followers_url":"https://api.github.com/users/pre-commit/followers","following_url":"https://api.github.com/users/pre-commit/following{/other_user}","gists_url":"https://api.github.com/users/pre-commit/gists{/gist_id}","starred_url":"https://api.github.com/users/pre-commit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pre-commit/subscriptions","organizations_url":"https://api.github.com/users/pre-commit/orgs","repos_url":"https://api.github.com/users/pre-commit/repos","events_url":"https://api.github.com/users/pre-commit/events{/privacy}","received_events_url":"https://api.github.com/users/pre-commit/received_events","type":"Organization","site_admin":false},"repo":{"id":17689377,"name":"pre-commit","full_name":"pre-commit/pre-commit","owner":{"login":"pre-commit","id":6943086,"avatar_url":"https://avatars.githubusercontent.com/u/6943086?v=3","gravatar_id":"","url":"https://api.github.com/users/pre-commit","html_url":"https://github.com/pre-commit","followers_url":"https://api.github.com/users/pre-commit/followers","following_url":"https://api.github.com/users/pre-commit/following{/other_user}","gists_url":"https://api.github.com/users/pre-commit/gists{/gist_id}","starred_url":"https://api.github.com/users/pre-commit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pre-commit/subscriptions","organizations_url":"https://api.github.com/users/pre-commit/orgs","repos_url":"https://api.github.com/users/pre-commit/repos","events_url":"https://api.github.com/users/pre-commit/events{/privacy}","received_events_url":"https://api.github.com/users/pre-commit/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/pre-commit/pre-commit","description":"A framework for managing and maintaining multi-language pre-commit hooks.","fork":false,"url":"https://api.github.com/repos/pre-commit/pre-commit","forks_url":"https://api.github.com/repos/pre-commit/pre-commit/forks","keys_url":"https://api.github.com/repos/pre-commit/pre-commit/keys{/key_id}","collaborators_url":"https://api.github.com/repos/pre-commit/pre-commit/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/pre-commit/pre-commit/teams","hooks_url":"https://api.github.com/repos/pre-commit/pre-commit/hooks","issue_events_url":"https://api.github.com/repos/pre-commit/pre-commit/issues/events{/number}","events_url":"https://api.github.com/repos/pre-commit/pre-commit/events","assignees_url":"https://api.github.com/repos/pre-commit/pre-commit/assignees{/user}","branches_url":"https://api.github.com/repos/pre-commit/pre-commit/branches{/branch}","tags_url":"https://api.github.com/repos/pre-commit/pre-commit/tags","blobs_url":"https://api.github.com/repos/pre-commit/pre-commit/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/pre-commit/pre-commit/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/pre-commit/pre-commit/git/refs{/sha}","trees_url":"https://api.github.com/repos/pre-commit/pre-commit/git/trees{/sha}","statuses_url":"https://api.github.com/repos/pre-commit/pre-commit/statuses/{sha}","languages_url":"https://api.github.com/repos/pre-commit/pre-commit/languages","stargazers_url":"https://api.github.com/repos/pre-commit/pre-commit/stargazers","contributors_url":"https://api.github.com/repos/pre-commit/pre-commit/contributors","subscribers_url":"https://api.github.com/repos/pre-commit/pre-commit/subscribers","subscription_url":"https://api.github.com/repos/pre-commit/pre-commit/subscription","commits_url":"https://api.github.com/repos/pre-commit/pre-commit/commits{/sha}","git_commits_url":"https://api.github.com/repos/pre-commit/pre-commit/git/commits{/sha}","comments_url":"https://api.github.com/repos/pre-commit/pre-commit/comments{/number}","issue_comment_url":"https://api.github.com/repos/pre-commit/pre-commit/issues/comments{/number}","contents_url":"https://api.github.com/repos/pre-commit/pre-commit/contents/{+path}","compare_url":"https://api.github.com/repos/pre-commit/pre-commit/compare/{base}...{head}","merges_url":"https://api.github.com/repos/pre-commit/pre-commit/merges","archive_url":"https://api.github.com/repos/pre-commit/pre-commit/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/pre-commit/pre-commit/downloads","issues_url":"https://api.github.com/repos/pre-commit/pre-commit/issues{/number}","pulls_url":"https://api.github.com/repos/pre-commit/pre-commit/pulls{/number}","milestones_url":"https://api.github.com/repos/pre-commit/pre-commit/milestones{/number}","notifications_url":"https://api.github.com/repos/pre-commit/pre-commit/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/pre-commit/pre-commit/labels{/name}","releases_url":"https://api.github.com/repos/pre-commit/pre-commit/releases{/id}","created_at":"2014-03-13T00:39:38Z","updated_at":"2015-11-19T02:58:15Z","pushed_at":"2015-11-19T17:31:21Z","git_url":"git://github.com/pre-commit/pre-commit.git","ssh_url":"git@github.com:pre-commit/pre-commit.git","clone_url":"https://github.com/pre-commit/pre-commit.git","svn_url":"https://github.com/pre-commit/pre-commit","homepage":null,"size":578,"stargazers_count":661,"watchers_count":661,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":56,"mirror_url":null,"open_issues_count":35,"forks":56,"open_issues":35,"watchers":661,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/pre-commit/pre-commit/pulls/295"},"html":{"href":"https://github.com/pre-commit/pre-commit/pull/295"},"issue":{"href":"https://api.github.com/repos/pre-commit/pre-commit/issues/295"},"comments":{"href":"https://api.github.com/repos/pre-commit/pre-commit/issues/295/comments"},"review_comments":{"href":"https://api.github.com/repos/pre-commit/pre-commit/pulls/295/comments"},"review_comment":{"href":"https://api.github.com/repos/pre-commit/pre-commit/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/pre-commit/pre-commit/pulls/295/commits"},"statuses":{"href":"https://api.github.com/repos/pre-commit/pre-commit/statuses/06b3d91da07c3d895a68baedb9fd2f926a170ee6"}}}}