{"action":"created","comment":{"url":"https://api.github.com/repos/coala/coala-bears/pulls/comments/98346083","pull_request_review_id":18987195,"id":98346083,"diff_hunk":"@@ -176,13 +177,30 @@ def run(self, filename, file,\n             isort_settings['known_standard_library'] = (\n                 known_standard_library_imports)\n \n-        sort_imports = SortImports(file_contents=''.join(file),\n-                                   **isort_settings)\n-        new_file = tuple(sort_imports.output.splitlines(True))\n+        def sort_imp(filename, file_contents, **isort_settings):\n+            sort_imports = SortImports(file_contents=''.join(file_contents)),\n+                                       **isort_settings)\n+            new_file = tuple(sort_imports.output.splitlines(True))","path":"bears/python/PyImportSortBear.py","position":20,"original_position":20,"commit_id":"95f6031d2c7e5f3a343bafee47ce8bb69d50ef84","original_commit_id":"95f6031d2c7e5f3a343bafee47ce8bb69d50ef84","user":{"login":"gitmate-bot","id":15421488,"avatar_url":"https://avatars.githubusercontent.com/u/15421488?v=3","gravatar_id":"","url":"https://api.github.com/users/gitmate-bot","html_url":"https://github.com/gitmate-bot","followers_url":"https://api.github.com/users/gitmate-bot/followers","following_url":"https://api.github.com/users/gitmate-bot/following{/other_user}","gists_url":"https://api.github.com/users/gitmate-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/gitmate-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gitmate-bot/subscriptions","organizations_url":"https://api.github.com/users/gitmate-bot/orgs","repos_url":"https://api.github.com/users/gitmate-bot/repos","events_url":"https://api.github.com/users/gitmate-bot/events{/privacy}","received_events_url":"https://api.github.com/users/gitmate-bot/received_events","type":"User","site_admin":false},"body":"E251 unexpected spaces around keyword / parameter equals'\n\n*PycodestyleBear (E251), severity NORMAL, section `autopep8`.*","created_at":"2017-01-29T06:36:52Z","updated_at":"2017-01-29T06:36:52Z","html_url":"https://github.com/coala/coala-bears/pull/1356#discussion_r98346083","pull_request_url":"https://api.github.com/repos/coala/coala-bears/pulls/1356","_links":{"self":{"href":"https://api.github.com/repos/coala/coala-bears/pulls/comments/98346083"},"html":{"href":"https://github.com/coala/coala-bears/pull/1356#discussion_r98346083"},"pull_request":{"href":"https://api.github.com/repos/coala/coala-bears/pulls/1356"}}},"pull_request":{"url":"https://api.github.com/repos/coala/coala-bears/pulls/1356","id":103636844,"html_url":"https://github.com/coala/coala-bears/pull/1356","diff_url":"https://github.com/coala/coala-bears/pull/1356.diff","patch_url":"https://github.com/coala/coala-bears/pull/1356.patch","issue_url":"https://api.github.com/repos/coala/coala-bears/issues/1356","number":1356,"state":"open","locked":false,"title":"WIP: PyImportSort: Option to treat imports separately","user":{"login":"meetmangukiya","id":7620533,"avatar_url":"https://avatars.githubusercontent.com/u/7620533?v=3","gravatar_id":"","url":"https://api.github.com/users/meetmangukiya","html_url":"https://github.com/meetmangukiya","followers_url":"https://api.github.com/users/meetmangukiya/followers","following_url":"https://api.github.com/users/meetmangukiya/following{/other_user}","gists_url":"https://api.github.com/users/meetmangukiya/gists{/gist_id}","starred_url":"https://api.github.com/users/meetmangukiya/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/meetmangukiya/subscriptions","organizations_url":"https://api.github.com/users/meetmangukiya/orgs","repos_url":"https://api.github.com/users/meetmangukiya/repos","events_url":"https://api.github.com/users/meetmangukiya/events{/privacy}","received_events_url":"https://api.github.com/users/meetmangukiya/received_events","type":"User","site_admin":false},"body":"If this option is set, then the imports separated by a line will be\r\nfed independently to the SortImports function and the results will be\r\nyielded accordingly.\r\n\r\nFixes https://github.com/coala/coala-bears/issues/879","created_at":"2017-01-29T06:19:50Z","updated_at":"2017-01-29T06:36:52Z","closed_at":null,"merged_at":null,"merge_commit_sha":"56eccc43204af596efecfa28aed620a2026115c1","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/coala/coala-bears/pulls/1356/commits","review_comments_url":"https://api.github.com/repos/coala/coala-bears/pulls/1356/comments","review_comment_url":"https://api.github.com/repos/coala/coala-bears/pulls/comments{/number}","comments_url":"https://api.github.com/repos/coala/coala-bears/issues/1356/comments","statuses_url":"https://api.github.com/repos/coala/coala-bears/statuses/95f6031d2c7e5f3a343bafee47ce8bb69d50ef84","head":{"label":"meetmangukiya:meet/fix/pyimportsort","ref":"meet/fix/pyimportsort","sha":"95f6031d2c7e5f3a343bafee47ce8bb69d50ef84","user":{"login":"meetmangukiya","id":7620533,"avatar_url":"https://avatars.githubusercontent.com/u/7620533?v=3","gravatar_id":"","url":"https://api.github.com/users/meetmangukiya","html_url":"https://github.com/meetmangukiya","followers_url":"https://api.github.com/users/meetmangukiya/followers","following_url":"https://api.github.com/users/meetmangukiya/following{/other_user}","gists_url":"https://api.github.com/users/meetmangukiya/gists{/gist_id}","starred_url":"https://api.github.com/users/meetmangukiya/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/meetmangukiya/subscriptions","organizations_url":"https://api.github.com/users/meetmangukiya/orgs","repos_url":"https://api.github.com/users/meetmangukiya/repos","events_url":"https://api.github.com/users/meetmangukiya/events{/privacy}","received_events_url":"https://api.github.com/users/meetmangukiya/received_events","type":"User","site_admin":false},"repo":{"id":67446434,"name":"coala-bears","full_name":"meetmangukiya/coala-bears","owner":{"login":"meetmangukiya","id":7620533,"avatar_url":"https://avatars.githubusercontent.com/u/7620533?v=3","gravatar_id":"","url":"https://api.github.com/users/meetmangukiya","html_url":"https://github.com/meetmangukiya","followers_url":"https://api.github.com/users/meetmangukiya/followers","following_url":"https://api.github.com/users/meetmangukiya/following{/other_user}","gists_url":"https://api.github.com/users/meetmangukiya/gists{/gist_id}","starred_url":"https://api.github.com/users/meetmangukiya/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/meetmangukiya/subscriptions","organizations_url":"https://api.github.com/users/meetmangukiya/orgs","repos_url":"https://api.github.com/users/meetmangukiya/repos","events_url":"https://api.github.com/users/meetmangukiya/events{/privacy}","received_events_url":"https://api.github.com/users/meetmangukiya/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/meetmangukiya/coala-bears","description":"Bears for coala","fork":true,"url":"https://api.github.com/repos/meetmangukiya/coala-bears","forks_url":"https://api.github.com/repos/meetmangukiya/coala-bears/forks","keys_url":"https://api.github.com/repos/meetmangukiya/coala-bears/keys{/key_id}","collaborators_url":"https://api.github.com/repos/meetmangukiya/coala-bears/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/meetmangukiya/coala-bears/teams","hooks_url":"https://api.github.com/repos/meetmangukiya/coala-bears/hooks","issue_events_url":"https://api.github.com/repos/meetmangukiya/coala-bears/issues/events{/number}","events_url":"https://api.github.com/repos/meetmangukiya/coala-bears/events","assignees_url":"https://api.github.com/repos/meetmangukiya/coala-bears/assignees{/user}","branches_url":"https://api.github.com/repos/meetmangukiya/coala-bears/branches{/branch}","tags_url":"https://api.github.com/repos/meetmangukiya/coala-bears/tags","blobs_url":"https://api.github.com/repos/meetmangukiya/coala-bears/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/meetmangukiya/coala-bears/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/meetmangukiya/coala-bears/git/refs{/sha}","trees_url":"https://api.github.com/repos/meetmangukiya/coala-bears/git/trees{/sha}","statuses_url":"https://api.github.com/repos/meetmangukiya/coala-bears/statuses/{sha}","languages_url":"https://api.github.com/repos/meetmangukiya/coala-bears/languages","stargazers_url":"https://api.github.com/repos/meetmangukiya/coala-bears/stargazers","contributors_url":"https://api.github.com/repos/meetmangukiya/coala-bears/contributors","subscribers_url":"https://api.github.com/repos/meetmangukiya/coala-bears/subscribers","subscription_url":"https://api.github.com/repos/meetmangukiya/coala-bears/subscription","commits_url":"https://api.github.com/repos/meetmangukiya/coala-bears/commits{/sha}","git_commits_url":"https://api.github.com/repos/meetmangukiya/coala-bears/git/commits{/sha}","comments_url":"https://api.github.com/repos/meetmangukiya/coala-bears/comments{/number}","issue_comment_url":"https://api.github.com/repos/meetmangukiya/coala-bears/issues/comments{/number}","contents_url":"https://api.github.com/repos/meetmangukiya/coala-bears/contents/{+path}","compare_url":"https://api.github.com/repos/meetmangukiya/coala-bears/compare/{base}...{head}","merges_url":"https://api.github.com/repos/meetmangukiya/coala-bears/merges","archive_url":"https://api.github.com/repos/meetmangukiya/coala-bears/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/meetmangukiya/coala-bears/downloads","issues_url":"https://api.github.com/repos/meetmangukiya/coala-bears/issues{/number}","pulls_url":"https://api.github.com/repos/meetmangukiya/coala-bears/pulls{/number}","milestones_url":"https://api.github.com/repos/meetmangukiya/coala-bears/milestones{/number}","notifications_url":"https://api.github.com/repos/meetmangukiya/coala-bears/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/meetmangukiya/coala-bears/labels{/name}","releases_url":"https://api.github.com/repos/meetmangukiya/coala-bears/releases{/id}","deployments_url":"https://api.github.com/repos/meetmangukiya/coala-bears/deployments","created_at":"2016-09-05T19:39:10Z","updated_at":"2016-09-05T19:39:12Z","pushed_at":"2017-01-29T06:35:39Z","git_url":"git://github.com/meetmangukiya/coala-bears.git","ssh_url":"git@github.com:meetmangukiya/coala-bears.git","clone_url":"https://github.com/meetmangukiya/coala-bears.git","svn_url":"https://github.com/meetmangukiya/coala-bears","homepage":"http://coala-analyzer.org/","size":1419,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":false,"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":"coala:master","ref":"master","sha":"df0177794212843760d30a0b4f6dba9f654f84eb","user":{"login":"coala","id":10620750,"avatar_url":"https://avatars.githubusercontent.com/u/10620750?v=3","gravatar_id":"","url":"https://api.github.com/users/coala","html_url":"https://github.com/coala","followers_url":"https://api.github.com/users/coala/followers","following_url":"https://api.github.com/users/coala/following{/other_user}","gists_url":"https://api.github.com/users/coala/gists{/gist_id}","starred_url":"https://api.github.com/users/coala/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/coala/subscriptions","organizations_url":"https://api.github.com/users/coala/orgs","repos_url":"https://api.github.com/users/coala/repos","events_url":"https://api.github.com/users/coala/events{/privacy}","received_events_url":"https://api.github.com/users/coala/received_events","type":"Organization","site_admin":false},"repo":{"id":51688289,"name":"coala-bears","full_name":"coala/coala-bears","owner":{"login":"coala","id":10620750,"avatar_url":"https://avatars.githubusercontent.com/u/10620750?v=3","gravatar_id":"","url":"https://api.github.com/users/coala","html_url":"https://github.com/coala","followers_url":"https://api.github.com/users/coala/followers","following_url":"https://api.github.com/users/coala/following{/other_user}","gists_url":"https://api.github.com/users/coala/gists{/gist_id}","starred_url":"https://api.github.com/users/coala/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/coala/subscriptions","organizations_url":"https://api.github.com/users/coala/orgs","repos_url":"https://api.github.com/users/coala/repos","events_url":"https://api.github.com/users/coala/events{/privacy}","received_events_url":"https://api.github.com/users/coala/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/coala/coala-bears","description":"Bears for coala","fork":false,"url":"https://api.github.com/repos/coala/coala-bears","forks_url":"https://api.github.com/repos/coala/coala-bears/forks","keys_url":"https://api.github.com/repos/coala/coala-bears/keys{/key_id}","collaborators_url":"https://api.github.com/repos/coala/coala-bears/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/coala/coala-bears/teams","hooks_url":"https://api.github.com/repos/coala/coala-bears/hooks","issue_events_url":"https://api.github.com/repos/coala/coala-bears/issues/events{/number}","events_url":"https://api.github.com/repos/coala/coala-bears/events","assignees_url":"https://api.github.com/repos/coala/coala-bears/assignees{/user}","branches_url":"https://api.github.com/repos/coala/coala-bears/branches{/branch}","tags_url":"https://api.github.com/repos/coala/coala-bears/tags","blobs_url":"https://api.github.com/repos/coala/coala-bears/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/coala/coala-bears/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/coala/coala-bears/git/refs{/sha}","trees_url":"https://api.github.com/repos/coala/coala-bears/git/trees{/sha}","statuses_url":"https://api.github.com/repos/coala/coala-bears/statuses/{sha}","languages_url":"https://api.github.com/repos/coala/coala-bears/languages","stargazers_url":"https://api.github.com/repos/coala/coala-bears/stargazers","contributors_url":"https://api.github.com/repos/coala/coala-bears/contributors","subscribers_url":"https://api.github.com/repos/coala/coala-bears/subscribers","subscription_url":"https://api.github.com/repos/coala/coala-bears/subscription","commits_url":"https://api.github.com/repos/coala/coala-bears/commits{/sha}","git_commits_url":"https://api.github.com/repos/coala/coala-bears/git/commits{/sha}","comments_url":"https://api.github.com/repos/coala/coala-bears/comments{/number}","issue_comment_url":"https://api.github.com/repos/coala/coala-bears/issues/comments{/number}","contents_url":"https://api.github.com/repos/coala/coala-bears/contents/{+path}","compare_url":"https://api.github.com/repos/coala/coala-bears/compare/{base}...{head}","merges_url":"https://api.github.com/repos/coala/coala-bears/merges","archive_url":"https://api.github.com/repos/coala/coala-bears/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/coala/coala-bears/downloads","issues_url":"https://api.github.com/repos/coala/coala-bears/issues{/number}","pulls_url":"https://api.github.com/repos/coala/coala-bears/pulls{/number}","milestones_url":"https://api.github.com/repos/coala/coala-bears/milestones{/number}","notifications_url":"https://api.github.com/repos/coala/coala-bears/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/coala/coala-bears/labels{/name}","releases_url":"https://api.github.com/repos/coala/coala-bears/releases{/id}","deployments_url":"https://api.github.com/repos/coala/coala-bears/deployments","created_at":"2016-02-14T09:25:11Z","updated_at":"2017-01-28T08:34:31Z","pushed_at":"2017-01-29T06:35:40Z","git_url":"git://github.com/coala/coala-bears.git","ssh_url":"git@github.com:coala/coala-bears.git","clone_url":"https://github.com/coala/coala-bears.git","svn_url":"https://github.com/coala/coala-bears","homepage":"https://coala.io/","size":1456,"stargazers_count":83,"watchers_count":83,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":207,"mirror_url":null,"open_issues_count":313,"forks":207,"open_issues":313,"watchers":83,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/coala/coala-bears/pulls/1356"},"html":{"href":"https://github.com/coala/coala-bears/pull/1356"},"issue":{"href":"https://api.github.com/repos/coala/coala-bears/issues/1356"},"comments":{"href":"https://api.github.com/repos/coala/coala-bears/issues/1356/comments"},"review_comments":{"href":"https://api.github.com/repos/coala/coala-bears/pulls/1356/comments"},"review_comment":{"href":"https://api.github.com/repos/coala/coala-bears/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/coala/coala-bears/pulls/1356/commits"},"statuses":{"href":"https://api.github.com/repos/coala/coala-bears/statuses/95f6031d2c7e5f3a343bafee47ce8bb69d50ef84"}}}}
{"actor":{"display_login":"gitmate-bot"}}