{"action":"created","comment":{"url":"https://api.github.com/repos/google/yapf/pulls/comments/28218680","id":28218680,"diff_hunk":"@@ -51,6 +52,7 @@\n \n def FormatFile(filename,\n                style_config=None,\n+               style_opts=None,","path":"yapf/yapflib/yapf_api.py","position":12,"original_position":12,"commit_id":"8042eb2783ddf68dcf960cd0a7bfff1ea43965d2","original_commit_id":"8042eb2783ddf68dcf960cd0a7bfff1ea43965d2","user":{"login":"alexjurkiewicz","id":379509,"avatar_url":"https://avatars.githubusercontent.com/u/379509?v=3","gravatar_id":"","url":"https://api.github.com/users/alexjurkiewicz","html_url":"https://github.com/alexjurkiewicz","followers_url":"https://api.github.com/users/alexjurkiewicz/followers","following_url":"https://api.github.com/users/alexjurkiewicz/following{/other_user}","gists_url":"https://api.github.com/users/alexjurkiewicz/gists{/gist_id}","starred_url":"https://api.github.com/users/alexjurkiewicz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexjurkiewicz/subscriptions","organizations_url":"https://api.github.com/users/alexjurkiewicz/orgs","repos_url":"https://api.github.com/users/alexjurkiewicz/repos","events_url":"https://api.github.com/users/alexjurkiewicz/events{/privacy}","received_events_url":"https://api.github.com/users/alexjurkiewicz/received_events","type":"User","site_admin":false},"body":"oops, my editor is too helpful, the commit strips intentional trailing whitespace from a bunch of tests... I'll push a fix for this after your feedback","created_at":"2015-04-13T07:22:24Z","updated_at":"2015-04-13T07:22:24Z","html_url":"https://github.com/google/yapf/pull/93#discussion_r28218680","pull_request_url":"https://api.github.com/repos/google/yapf/pulls/93","_links":{"self":{"href":"https://api.github.com/repos/google/yapf/pulls/comments/28218680"},"html":{"href":"https://github.com/google/yapf/pull/93#discussion_r28218680"},"pull_request":{"href":"https://api.github.com/repos/google/yapf/pulls/93"}}},"pull_request":{"url":"https://api.github.com/repos/google/yapf/pulls/93","id":33140455,"html_url":"https://github.com/google/yapf/pull/93","diff_url":"https://github.com/google/yapf/pull/93.diff","patch_url":"https://github.com/google/yapf/pull/93.patch","issue_url":"https://api.github.com/repos/google/yapf/issues/93","number":93,"state":"open","locked":false,"title":"Add --max-line-width and --indent-width","user":{"login":"alexjurkiewicz","id":379509,"avatar_url":"https://avatars.githubusercontent.com/u/379509?v=3","gravatar_id":"","url":"https://api.github.com/users/alexjurkiewicz","html_url":"https://github.com/alexjurkiewicz","followers_url":"https://api.github.com/users/alexjurkiewicz/followers","following_url":"https://api.github.com/users/alexjurkiewicz/following{/other_user}","gists_url":"https://api.github.com/users/alexjurkiewicz/gists{/gist_id}","starred_url":"https://api.github.com/users/alexjurkiewicz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexjurkiewicz/subscriptions","organizations_url":"https://api.github.com/users/alexjurkiewicz/orgs","repos_url":"https://api.github.com/users/alexjurkiewicz/repos","events_url":"https://api.github.com/users/alexjurkiewicz/events{/privacy}","received_events_url":"https://api.github.com/users/alexjurkiewicz/received_events","type":"User","site_admin":false},"body":"I know `--style` supports dictionary overrides, but it's pretty unintuitive. Adding line-width as a first-class commandline option matches pep8 the linter. Indent width was easy to add so I did that too, but can remove if you prefer.\r\n\r\nPS, these options have a few synonyms. \"line width\", \"column width\", \"line length\" are all in use, as is \"indent size\" and \"indent width\". I picked names that seemed to match yapf codebase, but they are different to eg pep8 the linter.","created_at":"2015-04-13T07:18:38Z","updated_at":"2015-04-13T07:22:24Z","closed_at":null,"merged_at":null,"merge_commit_sha":"42ecf59035fa579915fd43933b1d65be3895a1de","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/google/yapf/pulls/93/commits","review_comments_url":"https://api.github.com/repos/google/yapf/pulls/93/comments","review_comment_url":"https://api.github.com/repos/google/yapf/pulls/comments{/number}","comments_url":"https://api.github.com/repos/google/yapf/issues/93/comments","statuses_url":"https://api.github.com/repos/google/yapf/statuses/8042eb2783ddf68dcf960cd0a7bfff1ea43965d2","head":{"label":"alexjurkiewicz:commandlineoverride","ref":"commandlineoverride","sha":"8042eb2783ddf68dcf960cd0a7bfff1ea43965d2","user":{"login":"alexjurkiewicz","id":379509,"avatar_url":"https://avatars.githubusercontent.com/u/379509?v=3","gravatar_id":"","url":"https://api.github.com/users/alexjurkiewicz","html_url":"https://github.com/alexjurkiewicz","followers_url":"https://api.github.com/users/alexjurkiewicz/followers","following_url":"https://api.github.com/users/alexjurkiewicz/following{/other_user}","gists_url":"https://api.github.com/users/alexjurkiewicz/gists{/gist_id}","starred_url":"https://api.github.com/users/alexjurkiewicz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexjurkiewicz/subscriptions","organizations_url":"https://api.github.com/users/alexjurkiewicz/orgs","repos_url":"https://api.github.com/users/alexjurkiewicz/repos","events_url":"https://api.github.com/users/alexjurkiewicz/events{/privacy}","received_events_url":"https://api.github.com/users/alexjurkiewicz/received_events","type":"User","site_admin":false},"repo":{"id":33853459,"name":"yapf","full_name":"alexjurkiewicz/yapf","owner":{"login":"alexjurkiewicz","id":379509,"avatar_url":"https://avatars.githubusercontent.com/u/379509?v=3","gravatar_id":"","url":"https://api.github.com/users/alexjurkiewicz","html_url":"https://github.com/alexjurkiewicz","followers_url":"https://api.github.com/users/alexjurkiewicz/followers","following_url":"https://api.github.com/users/alexjurkiewicz/following{/other_user}","gists_url":"https://api.github.com/users/alexjurkiewicz/gists{/gist_id}","starred_url":"https://api.github.com/users/alexjurkiewicz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexjurkiewicz/subscriptions","organizations_url":"https://api.github.com/users/alexjurkiewicz/orgs","repos_url":"https://api.github.com/users/alexjurkiewicz/repos","events_url":"https://api.github.com/users/alexjurkiewicz/events{/privacy}","received_events_url":"https://api.github.com/users/alexjurkiewicz/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/alexjurkiewicz/yapf","description":"A formatter for Python files","fork":true,"url":"https://api.github.com/repos/alexjurkiewicz/yapf","forks_url":"https://api.github.com/repos/alexjurkiewicz/yapf/forks","keys_url":"https://api.github.com/repos/alexjurkiewicz/yapf/keys{/key_id}","collaborators_url":"https://api.github.com/repos/alexjurkiewicz/yapf/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/alexjurkiewicz/yapf/teams","hooks_url":"https://api.github.com/repos/alexjurkiewicz/yapf/hooks","issue_events_url":"https://api.github.com/repos/alexjurkiewicz/yapf/issues/events{/number}","events_url":"https://api.github.com/repos/alexjurkiewicz/yapf/events","assignees_url":"https://api.github.com/repos/alexjurkiewicz/yapf/assignees{/user}","branches_url":"https://api.github.com/repos/alexjurkiewicz/yapf/branches{/branch}","tags_url":"https://api.github.com/repos/alexjurkiewicz/yapf/tags","blobs_url":"https://api.github.com/repos/alexjurkiewicz/yapf/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/alexjurkiewicz/yapf/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/alexjurkiewicz/yapf/git/refs{/sha}","trees_url":"https://api.github.com/repos/alexjurkiewicz/yapf/git/trees{/sha}","statuses_url":"https://api.github.com/repos/alexjurkiewicz/yapf/statuses/{sha}","languages_url":"https://api.github.com/repos/alexjurkiewicz/yapf/languages","stargazers_url":"https://api.github.com/repos/alexjurkiewicz/yapf/stargazers","contributors_url":"https://api.github.com/repos/alexjurkiewicz/yapf/contributors","subscribers_url":"https://api.github.com/repos/alexjurkiewicz/yapf/subscribers","subscription_url":"https://api.github.com/repos/alexjurkiewicz/yapf/subscription","commits_url":"https://api.github.com/repos/alexjurkiewicz/yapf/commits{/sha}","git_commits_url":"https://api.github.com/repos/alexjurkiewicz/yapf/git/commits{/sha}","comments_url":"https://api.github.com/repos/alexjurkiewicz/yapf/comments{/number}","issue_comment_url":"https://api.github.com/repos/alexjurkiewicz/yapf/issues/comments{/number}","contents_url":"https://api.github.com/repos/alexjurkiewicz/yapf/contents/{+path}","compare_url":"https://api.github.com/repos/alexjurkiewicz/yapf/compare/{base}...{head}","merges_url":"https://api.github.com/repos/alexjurkiewicz/yapf/merges","archive_url":"https://api.github.com/repos/alexjurkiewicz/yapf/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/alexjurkiewicz/yapf/downloads","issues_url":"https://api.github.com/repos/alexjurkiewicz/yapf/issues{/number}","pulls_url":"https://api.github.com/repos/alexjurkiewicz/yapf/pulls{/number}","milestones_url":"https://api.github.com/repos/alexjurkiewicz/yapf/milestones{/number}","notifications_url":"https://api.github.com/repos/alexjurkiewicz/yapf/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/alexjurkiewicz/yapf/labels{/name}","releases_url":"https://api.github.com/repos/alexjurkiewicz/yapf/releases{/id}","created_at":"2015-04-13T07:12:50Z","updated_at":"2015-04-13T07:12:51Z","pushed_at":"2015-04-13T07:13:35Z","git_url":"git://github.com/alexjurkiewicz/yapf.git","ssh_url":"git@github.com:alexjurkiewicz/yapf.git","clone_url":"https://github.com/alexjurkiewicz/yapf.git","svn_url":"https://github.com/alexjurkiewicz/yapf","homepage":"","size":1398,"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":"google:master","ref":"master","sha":"e5591550ee91df9f70d1dc5ba047cfa2e54e18b9","user":{"login":"google","id":1342004,"avatar_url":"https://avatars.githubusercontent.com/u/1342004?v=3","gravatar_id":"","url":"https://api.github.com/users/google","html_url":"https://github.com/google","followers_url":"https://api.github.com/users/google/followers","following_url":"https://api.github.com/users/google/following{/other_user}","gists_url":"https://api.github.com/users/google/gists{/gist_id}","starred_url":"https://api.github.com/users/google/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/google/subscriptions","organizations_url":"https://api.github.com/users/google/orgs","repos_url":"https://api.github.com/users/google/repos","events_url":"https://api.github.com/users/google/events{/privacy}","received_events_url":"https://api.github.com/users/google/received_events","type":"Organization","site_admin":false},"repo":{"id":32476524,"name":"yapf","full_name":"google/yapf","owner":{"login":"google","id":1342004,"avatar_url":"https://avatars.githubusercontent.com/u/1342004?v=3","gravatar_id":"","url":"https://api.github.com/users/google","html_url":"https://github.com/google","followers_url":"https://api.github.com/users/google/followers","following_url":"https://api.github.com/users/google/following{/other_user}","gists_url":"https://api.github.com/users/google/gists{/gist_id}","starred_url":"https://api.github.com/users/google/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/google/subscriptions","organizations_url":"https://api.github.com/users/google/orgs","repos_url":"https://api.github.com/users/google/repos","events_url":"https://api.github.com/users/google/events{/privacy}","received_events_url":"https://api.github.com/users/google/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/google/yapf","description":"A formatter for Python files","fork":false,"url":"https://api.github.com/repos/google/yapf","forks_url":"https://api.github.com/repos/google/yapf/forks","keys_url":"https://api.github.com/repos/google/yapf/keys{/key_id}","collaborators_url":"https://api.github.com/repos/google/yapf/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/google/yapf/teams","hooks_url":"https://api.github.com/repos/google/yapf/hooks","issue_events_url":"https://api.github.com/repos/google/yapf/issues/events{/number}","events_url":"https://api.github.com/repos/google/yapf/events","assignees_url":"https://api.github.com/repos/google/yapf/assignees{/user}","branches_url":"https://api.github.com/repos/google/yapf/branches{/branch}","tags_url":"https://api.github.com/repos/google/yapf/tags","blobs_url":"https://api.github.com/repos/google/yapf/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/google/yapf/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/google/yapf/git/refs{/sha}","trees_url":"https://api.github.com/repos/google/yapf/git/trees{/sha}","statuses_url":"https://api.github.com/repos/google/yapf/statuses/{sha}","languages_url":"https://api.github.com/repos/google/yapf/languages","stargazers_url":"https://api.github.com/repos/google/yapf/stargazers","contributors_url":"https://api.github.com/repos/google/yapf/contributors","subscribers_url":"https://api.github.com/repos/google/yapf/subscribers","subscription_url":"https://api.github.com/repos/google/yapf/subscription","commits_url":"https://api.github.com/repos/google/yapf/commits{/sha}","git_commits_url":"https://api.github.com/repos/google/yapf/git/commits{/sha}","comments_url":"https://api.github.com/repos/google/yapf/comments{/number}","issue_comment_url":"https://api.github.com/repos/google/yapf/issues/comments{/number}","contents_url":"https://api.github.com/repos/google/yapf/contents/{+path}","compare_url":"https://api.github.com/repos/google/yapf/compare/{base}...{head}","merges_url":"https://api.github.com/repos/google/yapf/merges","archive_url":"https://api.github.com/repos/google/yapf/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/google/yapf/downloads","issues_url":"https://api.github.com/repos/google/yapf/issues{/number}","pulls_url":"https://api.github.com/repos/google/yapf/pulls{/number}","milestones_url":"https://api.github.com/repos/google/yapf/milestones{/number}","notifications_url":"https://api.github.com/repos/google/yapf/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/google/yapf/labels{/name}","releases_url":"https://api.github.com/repos/google/yapf/releases{/id}","created_at":"2015-03-18T18:22:31Z","updated_at":"2015-04-13T05:38:23Z","pushed_at":"2015-04-13T07:18:39Z","git_url":"git://github.com/google/yapf.git","ssh_url":"git@github.com:google/yapf.git","clone_url":"https://github.com/google/yapf.git","svn_url":"https://github.com/google/yapf","homepage":"","size":1398,"stargazers_count":2206,"watchers_count":2206,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":99,"mirror_url":null,"open_issues_count":23,"forks":99,"open_issues":23,"watchers":2206,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/google/yapf/pulls/93"},"html":{"href":"https://github.com/google/yapf/pull/93"},"issue":{"href":"https://api.github.com/repos/google/yapf/issues/93"},"comments":{"href":"https://api.github.com/repos/google/yapf/issues/93/comments"},"review_comments":{"href":"https://api.github.com/repos/google/yapf/pulls/93/comments"},"review_comment":{"href":"https://api.github.com/repos/google/yapf/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/google/yapf/pulls/93/commits"},"statuses":{"href":"https://api.github.com/repos/google/yapf/statuses/8042eb2783ddf68dcf960cd0a7bfff1ea43965d2"}}}}