{"action":"opened","number":24,"pull_request":{"url":"https://api.github.com/repos/miki725/importanize/pulls/24","id":30010061,"html_url":"https://github.com/miki725/importanize/pull/24","diff_url":"https://github.com/miki725/importanize/pull/24.diff","patch_url":"https://github.com/miki725/importanize/pull/24.patch","issue_url":"https://api.github.com/repos/miki725/importanize/issues/24","number":24,"state":"open","locked":false,"title":"Add formatters","user":{"login":"benjaminabel","id":1004282,"avatar_url":"https://avatars.githubusercontent.com/u/1004282?v=3","gravatar_id":"","url":"https://api.github.com/users/benjaminabel","html_url":"https://github.com/benjaminabel","followers_url":"https://api.github.com/users/benjaminabel/followers","following_url":"https://api.github.com/users/benjaminabel/following{/other_user}","gists_url":"https://api.github.com/users/benjaminabel/gists{/gist_id}","starred_url":"https://api.github.com/users/benjaminabel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/benjaminabel/subscriptions","organizations_url":"https://api.github.com/users/benjaminabel/orgs","repos_url":"https://api.github.com/users/benjaminabel/repos","events_url":"https://api.github.com/users/benjaminabel/events{/privacy}","received_events_url":"https://api.github.com/users/benjaminabel/received_events","type":"User","site_admin":false},"body":"This is a continuation of #23 which tries to fix the issue #12 .\r\n\r\nCurrently two formatters classes are available, the default one `IndentWithTabsFormatter`and a new `VerticalHangingFormatter`. Tests are OK. Need to add a way to pass the formatter from command-line or config file. Have you any suggestions for the the way and syntax to do it @miki725 ? \r\n\r\nHere's the TODO from #23 :\r\n\r\n- [ ] add `--formatter` option in the script\r\n- [x] refactor `formatted()` tests to `test_formatters.py`\r\n- [x] add new tests for new formatter\r\n- [x] add some docs with examples of difference in formatters\r\n- [ ] update `README`","created_at":"2015-02-25T18:00:15Z","updated_at":"2015-02-25T18:00:15Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/miki725/importanize/pulls/24/commits","review_comments_url":"https://api.github.com/repos/miki725/importanize/pulls/24/comments","review_comment_url":"https://api.github.com/repos/miki725/importanize/pulls/comments{/number}","comments_url":"https://api.github.com/repos/miki725/importanize/issues/24/comments","statuses_url":"https://api.github.com/repos/miki725/importanize/statuses/3a7a3a935d9ecb92e4af385e0440f670a08062d7","head":{"label":"benjaminabel:formatters","ref":"formatters","sha":"3a7a3a935d9ecb92e4af385e0440f670a08062d7","user":{"login":"benjaminabel","id":1004282,"avatar_url":"https://avatars.githubusercontent.com/u/1004282?v=3","gravatar_id":"","url":"https://api.github.com/users/benjaminabel","html_url":"https://github.com/benjaminabel","followers_url":"https://api.github.com/users/benjaminabel/followers","following_url":"https://api.github.com/users/benjaminabel/following{/other_user}","gists_url":"https://api.github.com/users/benjaminabel/gists{/gist_id}","starred_url":"https://api.github.com/users/benjaminabel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/benjaminabel/subscriptions","organizations_url":"https://api.github.com/users/benjaminabel/orgs","repos_url":"https://api.github.com/users/benjaminabel/repos","events_url":"https://api.github.com/users/benjaminabel/events{/privacy}","received_events_url":"https://api.github.com/users/benjaminabel/received_events","type":"User","site_admin":false},"repo":{"id":31012445,"name":"importanize","full_name":"benjaminabel/importanize","owner":{"login":"benjaminabel","id":1004282,"avatar_url":"https://avatars.githubusercontent.com/u/1004282?v=3","gravatar_id":"","url":"https://api.github.com/users/benjaminabel","html_url":"https://github.com/benjaminabel","followers_url":"https://api.github.com/users/benjaminabel/followers","following_url":"https://api.github.com/users/benjaminabel/following{/other_user}","gists_url":"https://api.github.com/users/benjaminabel/gists{/gist_id}","starred_url":"https://api.github.com/users/benjaminabel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/benjaminabel/subscriptions","organizations_url":"https://api.github.com/users/benjaminabel/orgs","repos_url":"https://api.github.com/users/benjaminabel/repos","events_url":"https://api.github.com/users/benjaminabel/events{/privacy}","received_events_url":"https://api.github.com/users/benjaminabel/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/benjaminabel/importanize","description":"Utility for organizing Python imports using PEP8 or custom rules","fork":true,"url":"https://api.github.com/repos/benjaminabel/importanize","forks_url":"https://api.github.com/repos/benjaminabel/importanize/forks","keys_url":"https://api.github.com/repos/benjaminabel/importanize/keys{/key_id}","collaborators_url":"https://api.github.com/repos/benjaminabel/importanize/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/benjaminabel/importanize/teams","hooks_url":"https://api.github.com/repos/benjaminabel/importanize/hooks","issue_events_url":"https://api.github.com/repos/benjaminabel/importanize/issues/events{/number}","events_url":"https://api.github.com/repos/benjaminabel/importanize/events","assignees_url":"https://api.github.com/repos/benjaminabel/importanize/assignees{/user}","branches_url":"https://api.github.com/repos/benjaminabel/importanize/branches{/branch}","tags_url":"https://api.github.com/repos/benjaminabel/importanize/tags","blobs_url":"https://api.github.com/repos/benjaminabel/importanize/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/benjaminabel/importanize/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/benjaminabel/importanize/git/refs{/sha}","trees_url":"https://api.github.com/repos/benjaminabel/importanize/git/trees{/sha}","statuses_url":"https://api.github.com/repos/benjaminabel/importanize/statuses/{sha}","languages_url":"https://api.github.com/repos/benjaminabel/importanize/languages","stargazers_url":"https://api.github.com/repos/benjaminabel/importanize/stargazers","contributors_url":"https://api.github.com/repos/benjaminabel/importanize/contributors","subscribers_url":"https://api.github.com/repos/benjaminabel/importanize/subscribers","subscription_url":"https://api.github.com/repos/benjaminabel/importanize/subscription","commits_url":"https://api.github.com/repos/benjaminabel/importanize/commits{/sha}","git_commits_url":"https://api.github.com/repos/benjaminabel/importanize/git/commits{/sha}","comments_url":"https://api.github.com/repos/benjaminabel/importanize/comments{/number}","issue_comment_url":"https://api.github.com/repos/benjaminabel/importanize/issues/comments{/number}","contents_url":"https://api.github.com/repos/benjaminabel/importanize/contents/{+path}","compare_url":"https://api.github.com/repos/benjaminabel/importanize/compare/{base}...{head}","merges_url":"https://api.github.com/repos/benjaminabel/importanize/merges","archive_url":"https://api.github.com/repos/benjaminabel/importanize/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/benjaminabel/importanize/downloads","issues_url":"https://api.github.com/repos/benjaminabel/importanize/issues{/number}","pulls_url":"https://api.github.com/repos/benjaminabel/importanize/pulls{/number}","milestones_url":"https://api.github.com/repos/benjaminabel/importanize/milestones{/number}","notifications_url":"https://api.github.com/repos/benjaminabel/importanize/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/benjaminabel/importanize/labels{/name}","releases_url":"https://api.github.com/repos/benjaminabel/importanize/releases{/id}","created_at":"2015-02-19T11:30:37Z","updated_at":"2015-02-19T11:30:37Z","pushed_at":"2015-02-25T17:47:50Z","git_url":"git://github.com/benjaminabel/importanize.git","ssh_url":"git@github.com:benjaminabel/importanize.git","clone_url":"https://github.com/benjaminabel/importanize.git","svn_url":"https://github.com/benjaminabel/importanize","homepage":"","size":181,"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":"miki725:formatters","ref":"formatters","sha":"623d48f8b1dbe3c9604fa22f24f940a6fb764cb6","user":{"login":"miki725","id":932940,"avatar_url":"https://avatars.githubusercontent.com/u/932940?v=3","gravatar_id":"","url":"https://api.github.com/users/miki725","html_url":"https://github.com/miki725","followers_url":"https://api.github.com/users/miki725/followers","following_url":"https://api.github.com/users/miki725/following{/other_user}","gists_url":"https://api.github.com/users/miki725/gists{/gist_id}","starred_url":"https://api.github.com/users/miki725/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/miki725/subscriptions","organizations_url":"https://api.github.com/users/miki725/orgs","repos_url":"https://api.github.com/users/miki725/repos","events_url":"https://api.github.com/users/miki725/events{/privacy}","received_events_url":"https://api.github.com/users/miki725/received_events","type":"User","site_admin":false},"repo":{"id":23434469,"name":"importanize","full_name":"miki725/importanize","owner":{"login":"miki725","id":932940,"avatar_url":"https://avatars.githubusercontent.com/u/932940?v=3","gravatar_id":"","url":"https://api.github.com/users/miki725","html_url":"https://github.com/miki725","followers_url":"https://api.github.com/users/miki725/followers","following_url":"https://api.github.com/users/miki725/following{/other_user}","gists_url":"https://api.github.com/users/miki725/gists{/gist_id}","starred_url":"https://api.github.com/users/miki725/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/miki725/subscriptions","organizations_url":"https://api.github.com/users/miki725/orgs","repos_url":"https://api.github.com/users/miki725/repos","events_url":"https://api.github.com/users/miki725/events{/privacy}","received_events_url":"https://api.github.com/users/miki725/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/miki725/importanize","description":"Utility for organizing Python imports using PEP8 or custom rules","fork":false,"url":"https://api.github.com/repos/miki725/importanize","forks_url":"https://api.github.com/repos/miki725/importanize/forks","keys_url":"https://api.github.com/repos/miki725/importanize/keys{/key_id}","collaborators_url":"https://api.github.com/repos/miki725/importanize/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/miki725/importanize/teams","hooks_url":"https://api.github.com/repos/miki725/importanize/hooks","issue_events_url":"https://api.github.com/repos/miki725/importanize/issues/events{/number}","events_url":"https://api.github.com/repos/miki725/importanize/events","assignees_url":"https://api.github.com/repos/miki725/importanize/assignees{/user}","branches_url":"https://api.github.com/repos/miki725/importanize/branches{/branch}","tags_url":"https://api.github.com/repos/miki725/importanize/tags","blobs_url":"https://api.github.com/repos/miki725/importanize/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/miki725/importanize/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/miki725/importanize/git/refs{/sha}","trees_url":"https://api.github.com/repos/miki725/importanize/git/trees{/sha}","statuses_url":"https://api.github.com/repos/miki725/importanize/statuses/{sha}","languages_url":"https://api.github.com/repos/miki725/importanize/languages","stargazers_url":"https://api.github.com/repos/miki725/importanize/stargazers","contributors_url":"https://api.github.com/repos/miki725/importanize/contributors","subscribers_url":"https://api.github.com/repos/miki725/importanize/subscribers","subscription_url":"https://api.github.com/repos/miki725/importanize/subscription","commits_url":"https://api.github.com/repos/miki725/importanize/commits{/sha}","git_commits_url":"https://api.github.com/repos/miki725/importanize/git/commits{/sha}","comments_url":"https://api.github.com/repos/miki725/importanize/comments{/number}","issue_comment_url":"https://api.github.com/repos/miki725/importanize/issues/comments{/number}","contents_url":"https://api.github.com/repos/miki725/importanize/contents/{+path}","compare_url":"https://api.github.com/repos/miki725/importanize/compare/{base}...{head}","merges_url":"https://api.github.com/repos/miki725/importanize/merges","archive_url":"https://api.github.com/repos/miki725/importanize/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/miki725/importanize/downloads","issues_url":"https://api.github.com/repos/miki725/importanize/issues{/number}","pulls_url":"https://api.github.com/repos/miki725/importanize/pulls{/number}","milestones_url":"https://api.github.com/repos/miki725/importanize/milestones{/number}","notifications_url":"https://api.github.com/repos/miki725/importanize/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/miki725/importanize/labels{/name}","releases_url":"https://api.github.com/repos/miki725/importanize/releases{/id}","created_at":"2014-08-28T16:09:47Z","updated_at":"2015-02-24T18:27:02Z","pushed_at":"2015-02-23T12:03:30Z","git_url":"git://github.com/miki725/importanize.git","ssh_url":"git@github.com:miki725/importanize.git","clone_url":"https://github.com/miki725/importanize.git","svn_url":"https://github.com/miki725/importanize","homepage":"","size":550,"stargazers_count":7,"watchers_count":7,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":6,"forks":2,"open_issues":6,"watchers":7,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/miki725/importanize/pulls/24"},"html":{"href":"https://github.com/miki725/importanize/pull/24"},"issue":{"href":"https://api.github.com/repos/miki725/importanize/issues/24"},"comments":{"href":"https://api.github.com/repos/miki725/importanize/issues/24/comments"},"review_comments":{"href":"https://api.github.com/repos/miki725/importanize/pulls/24/comments"},"review_comment":{"href":"https://api.github.com/repos/miki725/importanize/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/miki725/importanize/pulls/24/commits"},"statuses":{"href":"https://api.github.com/repos/miki725/importanize/statuses/3a7a3a935d9ecb92e4af385e0440f670a08062d7"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":3,"additions":365,"deletions":112,"changed_files":8}}