{"action":"created","comment":{"url":"https://api.github.com/repos/ambv/black/pulls/comments/178000513","pull_request_review_id":107979931,"id":178000513,"diff_hunk":"@@ -268,6 +268,35 @@ keep it.\n Use [proofit404/blacken](https://github.com/proofit404/blacken).\n \n \n+### PyCharm\n+\n+(Adapted from [*Pylinting with PyCharm*](https://kirankoduru.github.io/python/pylint-with-pycharm.html))\n+\n+1. Install `black`.\n+\n+        $ pip install black\n+\n+2. Locate your `black` installation folder.\n+\n+        $ which black         # MacOS/Linux\n+        /usr/local/bin/black  # this is just a possible output check yours\n+\n+       <!-->\n+\n+        $ where black         # Windows\n+        %LocalAppData%\\Programs\\Python\\Python36-32\\Scripts\\black.exe  # possible location\n+        \n+3. Open External tools in PyCharm with `File -> Settings -> Tools -> External Tools`.\n+\n+4. Click the + icon to add a new external tool with the following values:\n+    - Name: black\n+    - Description: Black is the uncompromising Python code formatter.\n+    - Program: <install_location_from_step_2>\n+    - Arguments: $FilePath$\n+\n+5. Format the currently opened file by selecting `Tools -> External Tools -> black`.","path":"README.md","position":30,"original_position":30,"commit_id":"75aa4cef47a590f9d49134c4466f2d650c15d922","original_commit_id":"75aa4cef47a590f9d49134c4466f2d650c15d922","user":{"login":"MichalPodeszwa","id":6998322,"avatar_url":"https://avatars2.githubusercontent.com/u/6998322?v=4","gravatar_id":"","url":"https://api.github.com/users/MichalPodeszwa","html_url":"https://github.com/MichalPodeszwa","followers_url":"https://api.github.com/users/MichalPodeszwa/followers","following_url":"https://api.github.com/users/MichalPodeszwa/following{/other_user}","gists_url":"https://api.github.com/users/MichalPodeszwa/gists{/gist_id}","starred_url":"https://api.github.com/users/MichalPodeszwa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MichalPodeszwa/subscriptions","organizations_url":"https://api.github.com/users/MichalPodeszwa/orgs","repos_url":"https://api.github.com/users/MichalPodeszwa/repos","events_url":"https://api.github.com/users/MichalPodeszwa/events{/privacy}","received_events_url":"https://api.github.com/users/MichalPodeszwa/received_events","type":"User","site_admin":false},"body":"I would also add instructions on how to map it as a keymap. (You can simply do it through the regular keymap settings). It'll be there in External Tools","created_at":"2018-03-29T09:27:02Z","updated_at":"2018-03-29T09:27:02Z","html_url":"https://github.com/ambv/black/pull/81#discussion_r178000513","pull_request_url":"https://api.github.com/repos/ambv/black/pulls/81","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/ambv/black/pulls/comments/178000513"},"html":{"href":"https://github.com/ambv/black/pull/81#discussion_r178000513"},"pull_request":{"href":"https://api.github.com/repos/ambv/black/pulls/81"}}},"pull_request":{"url":"https://api.github.com/repos/ambv/black/pulls/81","id":177805241,"html_url":"https://github.com/ambv/black/pull/81","diff_url":"https://github.com/ambv/black/pull/81.diff","patch_url":"https://github.com/ambv/black/pull/81.patch","issue_url":"https://api.github.com/repos/ambv/black/issues/81","number":81,"state":"open","locked":false,"title":"README: Add instructions for PyCharm","user":{"login":"Stevoisiak","id":1330770,"avatar_url":"https://avatars3.githubusercontent.com/u/1330770?v=4","gravatar_id":"","url":"https://api.github.com/users/Stevoisiak","html_url":"https://github.com/Stevoisiak","followers_url":"https://api.github.com/users/Stevoisiak/followers","following_url":"https://api.github.com/users/Stevoisiak/following{/other_user}","gists_url":"https://api.github.com/users/Stevoisiak/gists{/gist_id}","starred_url":"https://api.github.com/users/Stevoisiak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Stevoisiak/subscriptions","organizations_url":"https://api.github.com/users/Stevoisiak/orgs","repos_url":"https://api.github.com/users/Stevoisiak/repos","events_url":"https://api.github.com/users/Stevoisiak/events{/privacy}","received_events_url":"https://api.github.com/users/Stevoisiak/received_events","type":"User","site_admin":false},"body":"Instructions to add `black` to \"External Tools\" in PyCharm.\r\n\r\nAdapted from https://kirankoduru.github.io/python/pylint-with-pycharm.html","created_at":"2018-03-27T17:03:27Z","updated_at":"2018-03-29T09:27:02Z","closed_at":null,"merged_at":null,"merge_commit_sha":"339d79caed4a76fccf7910c1f4b19452c3ef6c9d","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/ambv/black/pulls/81/commits","review_comments_url":"https://api.github.com/repos/ambv/black/pulls/81/comments","review_comment_url":"https://api.github.com/repos/ambv/black/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ambv/black/issues/81/comments","statuses_url":"https://api.github.com/repos/ambv/black/statuses/75aa4cef47a590f9d49134c4466f2d650c15d922","head":{"label":"Stevoisiak:readme-pycharm","ref":"readme-pycharm","sha":"75aa4cef47a590f9d49134c4466f2d650c15d922","user":{"login":"Stevoisiak","id":1330770,"avatar_url":"https://avatars3.githubusercontent.com/u/1330770?v=4","gravatar_id":"","url":"https://api.github.com/users/Stevoisiak","html_url":"https://github.com/Stevoisiak","followers_url":"https://api.github.com/users/Stevoisiak/followers","following_url":"https://api.github.com/users/Stevoisiak/following{/other_user}","gists_url":"https://api.github.com/users/Stevoisiak/gists{/gist_id}","starred_url":"https://api.github.com/users/Stevoisiak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Stevoisiak/subscriptions","organizations_url":"https://api.github.com/users/Stevoisiak/orgs","repos_url":"https://api.github.com/users/Stevoisiak/repos","events_url":"https://api.github.com/users/Stevoisiak/events{/privacy}","received_events_url":"https://api.github.com/users/Stevoisiak/received_events","type":"User","site_admin":false},"repo":{"id":127012419,"name":"black","full_name":"Stevoisiak/black","owner":{"login":"Stevoisiak","id":1330770,"avatar_url":"https://avatars3.githubusercontent.com/u/1330770?v=4","gravatar_id":"","url":"https://api.github.com/users/Stevoisiak","html_url":"https://github.com/Stevoisiak","followers_url":"https://api.github.com/users/Stevoisiak/followers","following_url":"https://api.github.com/users/Stevoisiak/following{/other_user}","gists_url":"https://api.github.com/users/Stevoisiak/gists{/gist_id}","starred_url":"https://api.github.com/users/Stevoisiak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Stevoisiak/subscriptions","organizations_url":"https://api.github.com/users/Stevoisiak/orgs","repos_url":"https://api.github.com/users/Stevoisiak/repos","events_url":"https://api.github.com/users/Stevoisiak/events{/privacy}","received_events_url":"https://api.github.com/users/Stevoisiak/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Stevoisiak/black","description":"The uncompromising Python code formatter","fork":true,"url":"https://api.github.com/repos/Stevoisiak/black","forks_url":"https://api.github.com/repos/Stevoisiak/black/forks","keys_url":"https://api.github.com/repos/Stevoisiak/black/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Stevoisiak/black/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Stevoisiak/black/teams","hooks_url":"https://api.github.com/repos/Stevoisiak/black/hooks","issue_events_url":"https://api.github.com/repos/Stevoisiak/black/issues/events{/number}","events_url":"https://api.github.com/repos/Stevoisiak/black/events","assignees_url":"https://api.github.com/repos/Stevoisiak/black/assignees{/user}","branches_url":"https://api.github.com/repos/Stevoisiak/black/branches{/branch}","tags_url":"https://api.github.com/repos/Stevoisiak/black/tags","blobs_url":"https://api.github.com/repos/Stevoisiak/black/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Stevoisiak/black/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Stevoisiak/black/git/refs{/sha}","trees_url":"https://api.github.com/repos/Stevoisiak/black/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Stevoisiak/black/statuses/{sha}","languages_url":"https://api.github.com/repos/Stevoisiak/black/languages","stargazers_url":"https://api.github.com/repos/Stevoisiak/black/stargazers","contributors_url":"https://api.github.com/repos/Stevoisiak/black/contributors","subscribers_url":"https://api.github.com/repos/Stevoisiak/black/subscribers","subscription_url":"https://api.github.com/repos/Stevoisiak/black/subscription","commits_url":"https://api.github.com/repos/Stevoisiak/black/commits{/sha}","git_commits_url":"https://api.github.com/repos/Stevoisiak/black/git/commits{/sha}","comments_url":"https://api.github.com/repos/Stevoisiak/black/comments{/number}","issue_comment_url":"https://api.github.com/repos/Stevoisiak/black/issues/comments{/number}","contents_url":"https://api.github.com/repos/Stevoisiak/black/contents/{+path}","compare_url":"https://api.github.com/repos/Stevoisiak/black/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Stevoisiak/black/merges","archive_url":"https://api.github.com/repos/Stevoisiak/black/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Stevoisiak/black/downloads","issues_url":"https://api.github.com/repos/Stevoisiak/black/issues{/number}","pulls_url":"https://api.github.com/repos/Stevoisiak/black/pulls{/number}","milestones_url":"https://api.github.com/repos/Stevoisiak/black/milestones{/number}","notifications_url":"https://api.github.com/repos/Stevoisiak/black/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Stevoisiak/black/labels{/name}","releases_url":"https://api.github.com/repos/Stevoisiak/black/releases{/id}","deployments_url":"https://api.github.com/repos/Stevoisiak/black/deployments","created_at":"2018-03-27T16:02:07Z","updated_at":"2018-03-27T16:59:51Z","pushed_at":"2018-03-27T17:31:08Z","git_url":"git://github.com/Stevoisiak/black.git","ssh_url":"git@github.com:Stevoisiak/black.git","clone_url":"https://github.com/Stevoisiak/black.git","svn_url":"https://github.com/Stevoisiak/black","homepage":null,"size":1377,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"ambv:master","ref":"master","sha":"10bb45c35e8e08215ad9a060aca33be91a98b864","user":{"login":"ambv","id":55281,"avatar_url":"https://avatars1.githubusercontent.com/u/55281?v=4","gravatar_id":"","url":"https://api.github.com/users/ambv","html_url":"https://github.com/ambv","followers_url":"https://api.github.com/users/ambv/followers","following_url":"https://api.github.com/users/ambv/following{/other_user}","gists_url":"https://api.github.com/users/ambv/gists{/gist_id}","starred_url":"https://api.github.com/users/ambv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ambv/subscriptions","organizations_url":"https://api.github.com/users/ambv/orgs","repos_url":"https://api.github.com/users/ambv/repos","events_url":"https://api.github.com/users/ambv/events{/privacy}","received_events_url":"https://api.github.com/users/ambv/received_events","type":"User","site_admin":false},"repo":{"id":125266328,"name":"black","full_name":"ambv/black","owner":{"login":"ambv","id":55281,"avatar_url":"https://avatars1.githubusercontent.com/u/55281?v=4","gravatar_id":"","url":"https://api.github.com/users/ambv","html_url":"https://github.com/ambv","followers_url":"https://api.github.com/users/ambv/followers","following_url":"https://api.github.com/users/ambv/following{/other_user}","gists_url":"https://api.github.com/users/ambv/gists{/gist_id}","starred_url":"https://api.github.com/users/ambv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ambv/subscriptions","organizations_url":"https://api.github.com/users/ambv/orgs","repos_url":"https://api.github.com/users/ambv/repos","events_url":"https://api.github.com/users/ambv/events{/privacy}","received_events_url":"https://api.github.com/users/ambv/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ambv/black","description":"The uncompromising Python code formatter","fork":false,"url":"https://api.github.com/repos/ambv/black","forks_url":"https://api.github.com/repos/ambv/black/forks","keys_url":"https://api.github.com/repos/ambv/black/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ambv/black/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ambv/black/teams","hooks_url":"https://api.github.com/repos/ambv/black/hooks","issue_events_url":"https://api.github.com/repos/ambv/black/issues/events{/number}","events_url":"https://api.github.com/repos/ambv/black/events","assignees_url":"https://api.github.com/repos/ambv/black/assignees{/user}","branches_url":"https://api.github.com/repos/ambv/black/branches{/branch}","tags_url":"https://api.github.com/repos/ambv/black/tags","blobs_url":"https://api.github.com/repos/ambv/black/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ambv/black/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ambv/black/git/refs{/sha}","trees_url":"https://api.github.com/repos/ambv/black/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ambv/black/statuses/{sha}","languages_url":"https://api.github.com/repos/ambv/black/languages","stargazers_url":"https://api.github.com/repos/ambv/black/stargazers","contributors_url":"https://api.github.com/repos/ambv/black/contributors","subscribers_url":"https://api.github.com/repos/ambv/black/subscribers","subscription_url":"https://api.github.com/repos/ambv/black/subscription","commits_url":"https://api.github.com/repos/ambv/black/commits{/sha}","git_commits_url":"https://api.github.com/repos/ambv/black/git/commits{/sha}","comments_url":"https://api.github.com/repos/ambv/black/comments{/number}","issue_comment_url":"https://api.github.com/repos/ambv/black/issues/comments{/number}","contents_url":"https://api.github.com/repos/ambv/black/contents/{+path}","compare_url":"https://api.github.com/repos/ambv/black/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ambv/black/merges","archive_url":"https://api.github.com/repos/ambv/black/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ambv/black/downloads","issues_url":"https://api.github.com/repos/ambv/black/issues{/number}","pulls_url":"https://api.github.com/repos/ambv/black/pulls{/number}","milestones_url":"https://api.github.com/repos/ambv/black/milestones{/number}","notifications_url":"https://api.github.com/repos/ambv/black/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ambv/black/labels{/name}","releases_url":"https://api.github.com/repos/ambv/black/releases{/id}","deployments_url":"https://api.github.com/repos/ambv/black/deployments","created_at":"2018-03-14T19:54:45Z","updated_at":"2018-03-29T08:47:16Z","pushed_at":"2018-03-29T02:32:10Z","git_url":"git://github.com/ambv/black.git","ssh_url":"git@github.com:ambv/black.git","clone_url":"https://github.com/ambv/black.git","svn_url":"https://github.com/ambv/black","homepage":null,"size":1369,"stargazers_count":1365,"watchers_count":1365,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":31,"mirror_url":null,"archived":false,"open_issues_count":18,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":31,"open_issues":18,"watchers":1365,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ambv/black/pulls/81"},"html":{"href":"https://github.com/ambv/black/pull/81"},"issue":{"href":"https://api.github.com/repos/ambv/black/issues/81"},"comments":{"href":"https://api.github.com/repos/ambv/black/issues/81/comments"},"review_comments":{"href":"https://api.github.com/repos/ambv/black/pulls/81/comments"},"review_comment":{"href":"https://api.github.com/repos/ambv/black/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ambv/black/pulls/81/commits"},"statuses":{"href":"https://api.github.com/repos/ambv/black/statuses/75aa4cef47a590f9d49134c4466f2d650c15d922"}},"author_association":"NONE"}}
{"actor":{"display_login":"MichalPodeszwa"}}