{"action":"created","comment":{"url":"https://api.github.com/repos/w0rp/ale/pulls/comments/111833802","pull_request_review_id":33103619,"id":111833802,"diff_hunk":"@@ -116,6 +114,45 @@ function! ale#handlers#HandlePEP8Format(buffer, lines) abort\n     return l:output\n endfunction\n \n+\n+function! ale#handlers#HandleFlake8Format(buffer, lines) abort\n+    \" Matches patterns line the following:\n+    \"\n+    \" stdin:6:6: E111 indentation is not a multiple of four\n+    \"\n+    \" Uses g:ale_python_flake8_error_codes to decide the severity of the\n+    \" message\n+    let l:pattern = '^' . s:path_pattern . ':\\(\\d\\+\\):\\?\\(\\d\\+\\)\\?: \\(\\([[:alpha:]]\\)[[:alnum:]]\\+\\) \\(.*\\)$'\n+    let l:output = []\n+\n+    for l:line in a:lines\n+        let l:match = matchlist(l:line, l:pattern)\n+\n+        if len(l:match) == 0\n+            continue\n+        endif\n+\n+        let l:code = l:match[3]\n+        if (l:code ==# 'W291' || l:code ==# 'W293')\n+                    \\ && !g:ale_warn_about_trailing_whitespace\n+            \" Skip warnings for trailing whitespace if the option is off.\n+            continue\n+        endif\n+\n+        call add(l:output, {\n+        \\   'bufnr': a:buffer,\n+        \\   'lnum': l:match[1] + 0,\n+        \\   'vcol': 0,\n+        \\   'col': l:match[2] + 0,\n+        \\   'text': l:code . ': ' . l:match[5],\n+        \\   'type': index(g:ale_python_flake8_error_codes , l:code) == -1 ? 'W' : 'E',","path":"autoload/ale/handlers.vim","position":44,"original_position":44,"commit_id":"58d16ed35be194e187cb0f989b1364383183d624","original_commit_id":"58d16ed35be194e187cb0f989b1364383183d624","user":{"login":"w0rp","id":3518142,"avatar_url":"https://avatars1.githubusercontent.com/u/3518142?v=3","gravatar_id":"","url":"https://api.github.com/users/w0rp","html_url":"https://github.com/w0rp","followers_url":"https://api.github.com/users/w0rp/followers","following_url":"https://api.github.com/users/w0rp/following{/other_user}","gists_url":"https://api.github.com/users/w0rp/gists{/gist_id}","starred_url":"https://api.github.com/users/w0rp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/w0rp/subscriptions","organizations_url":"https://api.github.com/users/w0rp/orgs","repos_url":"https://api.github.com/users/w0rp/repos","events_url":"https://api.github.com/users/w0rp/events{/privacy}","received_events_url":"https://api.github.com/users/w0rp/received_events","type":"User","site_admin":false},"body":"Okay then.","created_at":"2017-04-17T22:15:26Z","updated_at":"2017-04-17T22:15:26Z","html_url":"https://github.com/w0rp/ale/pull/476#discussion_r111833802","pull_request_url":"https://api.github.com/repos/w0rp/ale/pulls/476","_links":{"self":{"href":"https://api.github.com/repos/w0rp/ale/pulls/comments/111833802"},"html":{"href":"https://github.com/w0rp/ale/pull/476#discussion_r111833802"},"pull_request":{"href":"https://api.github.com/repos/w0rp/ale/pulls/476"}}},"pull_request":{"url":"https://api.github.com/repos/w0rp/ale/pulls/476","id":115926570,"html_url":"https://github.com/w0rp/ale/pull/476","diff_url":"https://github.com/w0rp/ale/pull/476.diff","patch_url":"https://github.com/w0rp/ale/pull/476.patch","issue_url":"https://api.github.com/repos/w0rp/ale/issues/476","number":476,"state":"open","locked":false,"title":"Improve flake8 message severity","user":{"login":"Chronial","id":1321505,"avatar_url":"https://avatars0.githubusercontent.com/u/1321505?v=3","gravatar_id":"","url":"https://api.github.com/users/Chronial","html_url":"https://github.com/Chronial","followers_url":"https://api.github.com/users/Chronial/followers","following_url":"https://api.github.com/users/Chronial/following{/other_user}","gists_url":"https://api.github.com/users/Chronial/gists{/gist_id}","starred_url":"https://api.github.com/users/Chronial/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Chronial/subscriptions","organizations_url":"https://api.github.com/users/Chronial/orgs","repos_url":"https://api.github.com/users/Chronial/repos","events_url":"https://api.github.com/users/Chronial/events{/privacy}","received_events_url":"https://api.github.com/users/Chronial/received_events","type":"User","site_admin":false},"body":"(party) fixes #430 \r\n\r\nThe `g:ale_python_flake8_error_codes` is deliberately undocumented – It seems unlikely that someone might want to modify it. but it's overrideable just in case.","created_at":"2017-04-14T12:46:02Z","updated_at":"2017-04-17T22:15:26Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a7313139e2b2d9af86f33d22dfbd2fe2618c74eb","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/w0rp/ale/pulls/476/commits","review_comments_url":"https://api.github.com/repos/w0rp/ale/pulls/476/comments","review_comment_url":"https://api.github.com/repos/w0rp/ale/pulls/comments{/number}","comments_url":"https://api.github.com/repos/w0rp/ale/issues/476/comments","statuses_url":"https://api.github.com/repos/w0rp/ale/statuses/58d16ed35be194e187cb0f989b1364383183d624","head":{"label":"Chronial:feature/flake8_severity","ref":"feature/flake8_severity","sha":"58d16ed35be194e187cb0f989b1364383183d624","user":{"login":"Chronial","id":1321505,"avatar_url":"https://avatars0.githubusercontent.com/u/1321505?v=3","gravatar_id":"","url":"https://api.github.com/users/Chronial","html_url":"https://github.com/Chronial","followers_url":"https://api.github.com/users/Chronial/followers","following_url":"https://api.github.com/users/Chronial/following{/other_user}","gists_url":"https://api.github.com/users/Chronial/gists{/gist_id}","starred_url":"https://api.github.com/users/Chronial/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Chronial/subscriptions","organizations_url":"https://api.github.com/users/Chronial/orgs","repos_url":"https://api.github.com/users/Chronial/repos","events_url":"https://api.github.com/users/Chronial/events{/privacy}","received_events_url":"https://api.github.com/users/Chronial/received_events","type":"User","site_admin":false},"repo":{"id":77696357,"name":"ale","full_name":"Chronial/ale","owner":{"login":"Chronial","id":1321505,"avatar_url":"https://avatars0.githubusercontent.com/u/1321505?v=3","gravatar_id":"","url":"https://api.github.com/users/Chronial","html_url":"https://github.com/Chronial","followers_url":"https://api.github.com/users/Chronial/followers","following_url":"https://api.github.com/users/Chronial/following{/other_user}","gists_url":"https://api.github.com/users/Chronial/gists{/gist_id}","starred_url":"https://api.github.com/users/Chronial/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Chronial/subscriptions","organizations_url":"https://api.github.com/users/Chronial/orgs","repos_url":"https://api.github.com/users/Chronial/repos","events_url":"https://api.github.com/users/Chronial/events{/privacy}","received_events_url":"https://api.github.com/users/Chronial/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Chronial/ale","description":"Asynchronous Lint Engine","fork":true,"url":"https://api.github.com/repos/Chronial/ale","forks_url":"https://api.github.com/repos/Chronial/ale/forks","keys_url":"https://api.github.com/repos/Chronial/ale/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Chronial/ale/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Chronial/ale/teams","hooks_url":"https://api.github.com/repos/Chronial/ale/hooks","issue_events_url":"https://api.github.com/repos/Chronial/ale/issues/events{/number}","events_url":"https://api.github.com/repos/Chronial/ale/events","assignees_url":"https://api.github.com/repos/Chronial/ale/assignees{/user}","branches_url":"https://api.github.com/repos/Chronial/ale/branches{/branch}","tags_url":"https://api.github.com/repos/Chronial/ale/tags","blobs_url":"https://api.github.com/repos/Chronial/ale/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Chronial/ale/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Chronial/ale/git/refs{/sha}","trees_url":"https://api.github.com/repos/Chronial/ale/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Chronial/ale/statuses/{sha}","languages_url":"https://api.github.com/repos/Chronial/ale/languages","stargazers_url":"https://api.github.com/repos/Chronial/ale/stargazers","contributors_url":"https://api.github.com/repos/Chronial/ale/contributors","subscribers_url":"https://api.github.com/repos/Chronial/ale/subscribers","subscription_url":"https://api.github.com/repos/Chronial/ale/subscription","commits_url":"https://api.github.com/repos/Chronial/ale/commits{/sha}","git_commits_url":"https://api.github.com/repos/Chronial/ale/git/commits{/sha}","comments_url":"https://api.github.com/repos/Chronial/ale/comments{/number}","issue_comment_url":"https://api.github.com/repos/Chronial/ale/issues/comments{/number}","contents_url":"https://api.github.com/repos/Chronial/ale/contents/{+path}","compare_url":"https://api.github.com/repos/Chronial/ale/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Chronial/ale/merges","archive_url":"https://api.github.com/repos/Chronial/ale/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Chronial/ale/downloads","issues_url":"https://api.github.com/repos/Chronial/ale/issues{/number}","pulls_url":"https://api.github.com/repos/Chronial/ale/pulls{/number}","milestones_url":"https://api.github.com/repos/Chronial/ale/milestones{/number}","notifications_url":"https://api.github.com/repos/Chronial/ale/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Chronial/ale/labels{/name}","releases_url":"https://api.github.com/repos/Chronial/ale/releases{/id}","deployments_url":"https://api.github.com/repos/Chronial/ale/deployments","created_at":"2016-12-30T16:05:48Z","updated_at":"2016-12-30T16:05:51Z","pushed_at":"2017-04-14T12:43:20Z","git_url":"git://github.com/Chronial/ale.git","ssh_url":"git@github.com:Chronial/ale.git","clone_url":"https://github.com/Chronial/ale.git","svn_url":"https://github.com/Chronial/ale","homepage":null,"size":4451,"stargazers_count":0,"watchers_count":0,"language":"VimL","has_issues":false,"has_projects":true,"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":"w0rp:master","ref":"master","sha":"706dd050f2ec570eb12398d42a18f6c4f2bd56df","user":{"login":"w0rp","id":3518142,"avatar_url":"https://avatars1.githubusercontent.com/u/3518142?v=3","gravatar_id":"","url":"https://api.github.com/users/w0rp","html_url":"https://github.com/w0rp","followers_url":"https://api.github.com/users/w0rp/followers","following_url":"https://api.github.com/users/w0rp/following{/other_user}","gists_url":"https://api.github.com/users/w0rp/gists{/gist_id}","starred_url":"https://api.github.com/users/w0rp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/w0rp/subscriptions","organizations_url":"https://api.github.com/users/w0rp/orgs","repos_url":"https://api.github.com/users/w0rp/repos","events_url":"https://api.github.com/users/w0rp/events{/privacy}","received_events_url":"https://api.github.com/users/w0rp/received_events","type":"User","site_admin":false},"repo":{"id":67747748,"name":"ale","full_name":"w0rp/ale","owner":{"login":"w0rp","id":3518142,"avatar_url":"https://avatars1.githubusercontent.com/u/3518142?v=3","gravatar_id":"","url":"https://api.github.com/users/w0rp","html_url":"https://github.com/w0rp","followers_url":"https://api.github.com/users/w0rp/followers","following_url":"https://api.github.com/users/w0rp/following{/other_user}","gists_url":"https://api.github.com/users/w0rp/gists{/gist_id}","starred_url":"https://api.github.com/users/w0rp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/w0rp/subscriptions","organizations_url":"https://api.github.com/users/w0rp/orgs","repos_url":"https://api.github.com/users/w0rp/repos","events_url":"https://api.github.com/users/w0rp/events{/privacy}","received_events_url":"https://api.github.com/users/w0rp/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/w0rp/ale","description":"Asynchronous Lint Engine","fork":false,"url":"https://api.github.com/repos/w0rp/ale","forks_url":"https://api.github.com/repos/w0rp/ale/forks","keys_url":"https://api.github.com/repos/w0rp/ale/keys{/key_id}","collaborators_url":"https://api.github.com/repos/w0rp/ale/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/w0rp/ale/teams","hooks_url":"https://api.github.com/repos/w0rp/ale/hooks","issue_events_url":"https://api.github.com/repos/w0rp/ale/issues/events{/number}","events_url":"https://api.github.com/repos/w0rp/ale/events","assignees_url":"https://api.github.com/repos/w0rp/ale/assignees{/user}","branches_url":"https://api.github.com/repos/w0rp/ale/branches{/branch}","tags_url":"https://api.github.com/repos/w0rp/ale/tags","blobs_url":"https://api.github.com/repos/w0rp/ale/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/w0rp/ale/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/w0rp/ale/git/refs{/sha}","trees_url":"https://api.github.com/repos/w0rp/ale/git/trees{/sha}","statuses_url":"https://api.github.com/repos/w0rp/ale/statuses/{sha}","languages_url":"https://api.github.com/repos/w0rp/ale/languages","stargazers_url":"https://api.github.com/repos/w0rp/ale/stargazers","contributors_url":"https://api.github.com/repos/w0rp/ale/contributors","subscribers_url":"https://api.github.com/repos/w0rp/ale/subscribers","subscription_url":"https://api.github.com/repos/w0rp/ale/subscription","commits_url":"https://api.github.com/repos/w0rp/ale/commits{/sha}","git_commits_url":"https://api.github.com/repos/w0rp/ale/git/commits{/sha}","comments_url":"https://api.github.com/repos/w0rp/ale/comments{/number}","issue_comment_url":"https://api.github.com/repos/w0rp/ale/issues/comments{/number}","contents_url":"https://api.github.com/repos/w0rp/ale/contents/{+path}","compare_url":"https://api.github.com/repos/w0rp/ale/compare/{base}...{head}","merges_url":"https://api.github.com/repos/w0rp/ale/merges","archive_url":"https://api.github.com/repos/w0rp/ale/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/w0rp/ale/downloads","issues_url":"https://api.github.com/repos/w0rp/ale/issues{/number}","pulls_url":"https://api.github.com/repos/w0rp/ale/pulls{/number}","milestones_url":"https://api.github.com/repos/w0rp/ale/milestones{/number}","notifications_url":"https://api.github.com/repos/w0rp/ale/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/w0rp/ale/labels{/name}","releases_url":"https://api.github.com/repos/w0rp/ale/releases{/id}","deployments_url":"https://api.github.com/repos/w0rp/ale/deployments","created_at":"2016-09-08T23:22:45Z","updated_at":"2017-04-17T21:08:31Z","pushed_at":"2017-04-17T16:17:23Z","git_url":"git://github.com/w0rp/ale.git","ssh_url":"git@github.com:w0rp/ale.git","clone_url":"https://github.com/w0rp/ale.git","svn_url":"https://github.com/w0rp/ale","homepage":null,"size":4490,"stargazers_count":1521,"watchers_count":1521,"language":"Vim script","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":152,"mirror_url":null,"open_issues_count":61,"forks":152,"open_issues":61,"watchers":1521,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/w0rp/ale/pulls/476"},"html":{"href":"https://github.com/w0rp/ale/pull/476"},"issue":{"href":"https://api.github.com/repos/w0rp/ale/issues/476"},"comments":{"href":"https://api.github.com/repos/w0rp/ale/issues/476/comments"},"review_comments":{"href":"https://api.github.com/repos/w0rp/ale/pulls/476/comments"},"review_comment":{"href":"https://api.github.com/repos/w0rp/ale/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/w0rp/ale/pulls/476/commits"},"statuses":{"href":"https://api.github.com/repos/w0rp/ale/statuses/58d16ed35be194e187cb0f989b1364383183d624"}}}}
{"actor":{"display_login":"w0rp"}}