{"action":"created","issue":{"url":"https://api.github.com/repos/google/yapf/issues/490","repository_url":"https://api.github.com/repos/google/yapf","labels_url":"https://api.github.com/repos/google/yapf/issues/490/labels{/name}","comments_url":"https://api.github.com/repos/google/yapf/issues/490/comments","events_url":"https://api.github.com/repos/google/yapf/issues/490/events","html_url":"https://github.com/google/yapf/issues/490","id":282715231,"number":490,"title":"Is there a knob for preventing right-hanging line breaks?","user":{"login":"peterludemann","id":34629301,"avatar_url":"https://avatars1.githubusercontent.com/u/34629301?v=4","gravatar_id":"","url":"https://api.github.com/users/peterludemann","html_url":"https://github.com/peterludemann","followers_url":"https://api.github.com/users/peterludemann/followers","following_url":"https://api.github.com/users/peterludemann/following{/other_user}","gists_url":"https://api.github.com/users/peterludemann/gists{/gist_id}","starred_url":"https://api.github.com/users/peterludemann/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/peterludemann/subscriptions","organizations_url":"https://api.github.com/users/peterludemann/orgs","repos_url":"https://api.github.com/users/peterludemann/repos","events_url":"https://api.github.com/users/peterludemann/events{/privacy}","received_events_url":"https://api.github.com/users/peterludemann/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-12-17T18:57:52Z","updated_at":"2017-12-19T21:29:04Z","closed_at":null,"author_association":"NONE","body":"This is the output from yapf, which breaks up a list of tuples at a strange spot. I would like it to either put the list on a new line or make the break more \"balanced\", but I couldn't see a knob for doing this.\r\n\r\n```\r\n    def test_plain_old_data(self):\r\n        self.assertEqual(a_node._asdict(),\r\n                         collections.OrderedDict([('a', 1), ('b', 2), ('c',\r\n                                                                       3)]))\r\n```\r\n\r\nI'd prefer one of these for the assertEqual:\r\n\r\n```\r\n        self.assertEqual(a_node._asdict(),\r\n                         collections.OrderedDict([\r\n                             ('a', 1), ('b', 2), ('c', 3)]))\r\n```\r\n\r\nor\r\n\r\n```\r\n        self.assertEqual(a_node._asdict(),\r\n                         collections.OrderedDict([('a', 1), ('b', 2),\r\n                                                  ('c', 3)]))\r\n```\r\n\r\nor\r\n\r\n```\r\n        self.assertEqual(\r\n            a_node._asdict(),\r\n            collections.OrderedDict([('a', 1), ('b', 2), ('c', 3)]))\r\n```"},"comment":{"url":"https://api.github.com/repos/google/yapf/issues/comments/352891845","html_url":"https://github.com/google/yapf/issues/490#issuecomment-352891845","issue_url":"https://api.github.com/repos/google/yapf/issues/490","id":352891845,"user":{"login":"gwelymernans","id":5993918,"avatar_url":"https://avatars0.githubusercontent.com/u/5993918?v=4","gravatar_id":"","url":"https://api.github.com/users/gwelymernans","html_url":"https://github.com/gwelymernans","followers_url":"https://api.github.com/users/gwelymernans/followers","following_url":"https://api.github.com/users/gwelymernans/following{/other_user}","gists_url":"https://api.github.com/users/gwelymernans/gists{/gist_id}","starred_url":"https://api.github.com/users/gwelymernans/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gwelymernans/subscriptions","organizations_url":"https://api.github.com/users/gwelymernans/orgs","repos_url":"https://api.github.com/users/gwelymernans/repos","events_url":"https://api.github.com/users/gwelymernans/events{/privacy}","received_events_url":"https://api.github.com/users/gwelymernans/received_events","type":"User","site_admin":false},"created_at":"2017-12-19T21:29:04Z","updated_at":"2017-12-19T21:29:04Z","author_association":"MEMBER","body":"No knob. It should be doing the \"right thing\" automatically. There must be some sort of penalty issue going on here..."}}
{"actor":{"display_login":"gwelymernans"}}