{"action":"opened","issue":{"url":"https://api.github.com/repos/rupert/pyls-black/issues/9","repository_url":"https://api.github.com/repos/rupert/pyls-black","labels_url":"https://api.github.com/repos/rupert/pyls-black/issues/9/labels{/name}","comments_url":"https://api.github.com/repos/rupert/pyls-black/issues/9/comments","events_url":"https://api.github.com/repos/rupert/pyls-black/issues/9/events","html_url":"https://github.com/rupert/pyls-black/issues/9","id":370825985,"node_id":"MDU6SXNzdWUzNzA4MjU5ODU=","number":9,"title":"Cleaner integration with black","user":{"login":"rupert","id":182958,"node_id":"MDQ6VXNlcjE4Mjk1OA==","avatar_url":"https://avatars1.githubusercontent.com/u/182958?v=4","gravatar_id":"","url":"https://api.github.com/users/rupert","html_url":"https://github.com/rupert","followers_url":"https://api.github.com/users/rupert/followers","following_url":"https://api.github.com/users/rupert/following{/other_user}","gists_url":"https://api.github.com/users/rupert/gists{/gist_id}","starred_url":"https://api.github.com/users/rupert/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rupert/subscriptions","organizations_url":"https://api.github.com/users/rupert/orgs","repos_url":"https://api.github.com/users/rupert/repos","events_url":"https://api.github.com/users/rupert/events{/privacy}","received_events_url":"https://api.github.com/users/rupert/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-10-16T22:31:33Z","updated_at":"2018-10-16T22:31:33Z","closed_at":null,"author_association":"OWNER","body":"At the moment we use the `find_project_root`, `FileMode.from_configuration`, and `format_file_contents` functions from the `black` package.\r\n\r\nAt the moment if a new configuration option is added to `black`, our call to `FileMode.from_configuration` will break as it's missing an argument. It would be nice if `black` exposed a function to create a `FileMode` object from a `pyproject.toml` configuration file. Then we could pass the `FileMode` object to the `format_file_contents` function without worrying about the exact configuration options."}}
{"actor":{"display_login":"rupert"}}