{"action":"created","comment":{"url":"https://api.github.com/repos/kmmbvnr/django-jenkins/pulls/comments/74035232","id":74035232,"diff_hunk":"@@ -0,0 +1,20 @@\n+# -*- coding: utf-8 -*-\n+import os\n+import subprocess\n+from django.conf import settings\n+\n+\n+class Reporter(object):\n+    def run(self, apps_locations, **options):\n+        output = open(os.path.join(options['output_dir'], 'mypy.report'), 'w')\n+        cmd = [settings.MYPY_PATH, '-s', *apps_locations]\n+\n+        process = subprocess.Popen(cmd, stdout=subprocess.PIPE)\n+        report_output, err = process.communicate()\n+\n+        retcode = process.poll()\n+        if retcode not in [0, 1]:  # normal mypy return codes\n+            raise subprocess.CalledProcessError(retcode, cmd, output='%s\\n%s' % (report_output, err))\n+\n+        output.write(report_output.decode('utf-8'))","path":"django_jenkins/tasks/run_mypy.py","position":19,"original_position":19,"commit_id":"5fde02c379a894b6b5b5f007ffaef461de23c172","original_commit_id":"5fde02c379a894b6b5b5f007ffaef461de23c172","user":{"login":"kmmbvnr","id":282529,"avatar_url":"https://avatars.githubusercontent.com/u/282529?v=3","gravatar_id":"","url":"https://api.github.com/users/kmmbvnr","html_url":"https://github.com/kmmbvnr","followers_url":"https://api.github.com/users/kmmbvnr/followers","following_url":"https://api.github.com/users/kmmbvnr/following{/other_user}","gists_url":"https://api.github.com/users/kmmbvnr/gists{/gist_id}","starred_url":"https://api.github.com/users/kmmbvnr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kmmbvnr/subscriptions","organizations_url":"https://api.github.com/users/kmmbvnr/orgs","repos_url":"https://api.github.com/users/kmmbvnr/repos","events_url":"https://api.github.com/users/kmmbvnr/events{/privacy}","received_events_url":"https://api.github.com/users/kmmbvnr/received_events","type":"User","site_admin":false},"body":"Generally, documentation update required","created_at":"2016-08-09T10:41:14Z","updated_at":"2016-08-09T10:41:14Z","html_url":"https://github.com/kmmbvnr/django-jenkins/pull/342#discussion_r74035232","pull_request_url":"https://api.github.com/repos/kmmbvnr/django-jenkins/pulls/342","_links":{"self":{"href":"https://api.github.com/repos/kmmbvnr/django-jenkins/pulls/comments/74035232"},"html":{"href":"https://github.com/kmmbvnr/django-jenkins/pull/342#discussion_r74035232"},"pull_request":{"href":"https://api.github.com/repos/kmmbvnr/django-jenkins/pulls/342"}}},"pull_request":{"url":"https://api.github.com/repos/kmmbvnr/django-jenkins/pulls/342","id":80463551,"html_url":"https://github.com/kmmbvnr/django-jenkins/pull/342","diff_url":"https://github.com/kmmbvnr/django-jenkins/pull/342.diff","patch_url":"https://github.com/kmmbvnr/django-jenkins/pull/342.patch","issue_url":"https://api.github.com/repos/kmmbvnr/django-jenkins/issues/342","number":342,"state":"closed","locked":false,"title":"Added mypy reporter ","user":{"login":"a1fred","id":761153,"avatar_url":"https://avatars.githubusercontent.com/u/761153?v=3","gravatar_id":"","url":"https://api.github.com/users/a1fred","html_url":"https://github.com/a1fred","followers_url":"https://api.github.com/users/a1fred/followers","following_url":"https://api.github.com/users/a1fred/following{/other_user}","gists_url":"https://api.github.com/users/a1fred/gists{/gist_id}","starred_url":"https://api.github.com/users/a1fred/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/a1fred/subscriptions","organizations_url":"https://api.github.com/users/a1fred/orgs","repos_url":"https://api.github.com/users/a1fred/repos","events_url":"https://api.github.com/users/a1fred/events{/privacy}","received_events_url":"https://api.github.com/users/a1fred/received_events","type":"User","site_admin":false},"body":"Added reporter for mypy http://mypy-lang.org/","created_at":"2016-08-08T14:45:58Z","updated_at":"2016-08-09T10:41:14Z","closed_at":"2016-08-09T10:39:40Z","merged_at":null,"merge_commit_sha":"0bb586cb46f8febcedfd5d9b15732a545869ffcb","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/kmmbvnr/django-jenkins/pulls/342/commits","review_comments_url":"https://api.github.com/repos/kmmbvnr/django-jenkins/pulls/342/comments","review_comment_url":"https://api.github.com/repos/kmmbvnr/django-jenkins/pulls/comments{/number}","comments_url":"https://api.github.com/repos/kmmbvnr/django-jenkins/issues/342/comments","statuses_url":"https://api.github.com/repos/kmmbvnr/django-jenkins/statuses/5fde02c379a894b6b5b5f007ffaef461de23c172","head":{"label":"a1fred:master","ref":"master","sha":"5fde02c379a894b6b5b5f007ffaef461de23c172","user":{"login":"a1fred","id":761153,"avatar_url":"https://avatars.githubusercontent.com/u/761153?v=3","gravatar_id":"","url":"https://api.github.com/users/a1fred","html_url":"https://github.com/a1fred","followers_url":"https://api.github.com/users/a1fred/followers","following_url":"https://api.github.com/users/a1fred/following{/other_user}","gists_url":"https://api.github.com/users/a1fred/gists{/gist_id}","starred_url":"https://api.github.com/users/a1fred/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/a1fred/subscriptions","organizations_url":"https://api.github.com/users/a1fred/orgs","repos_url":"https://api.github.com/users/a1fred/repos","events_url":"https://api.github.com/users/a1fred/events{/privacy}","received_events_url":"https://api.github.com/users/a1fred/received_events","type":"User","site_admin":false},"repo":{"id":65212187,"name":"django-jenkins","full_name":"a1fred/django-jenkins","owner":{"login":"a1fred","id":761153,"avatar_url":"https://avatars.githubusercontent.com/u/761153?v=3","gravatar_id":"","url":"https://api.github.com/users/a1fred","html_url":"https://github.com/a1fred","followers_url":"https://api.github.com/users/a1fred/followers","following_url":"https://api.github.com/users/a1fred/following{/other_user}","gists_url":"https://api.github.com/users/a1fred/gists{/gist_id}","starred_url":"https://api.github.com/users/a1fred/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/a1fred/subscriptions","organizations_url":"https://api.github.com/users/a1fred/orgs","repos_url":"https://api.github.com/users/a1fred/repos","events_url":"https://api.github.com/users/a1fred/events{/privacy}","received_events_url":"https://api.github.com/users/a1fred/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/a1fred/django-jenkins","description":"Plug and play continuous integration with django and jenkins","fork":true,"url":"https://api.github.com/repos/a1fred/django-jenkins","forks_url":"https://api.github.com/repos/a1fred/django-jenkins/forks","keys_url":"https://api.github.com/repos/a1fred/django-jenkins/keys{/key_id}","collaborators_url":"https://api.github.com/repos/a1fred/django-jenkins/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/a1fred/django-jenkins/teams","hooks_url":"https://api.github.com/repos/a1fred/django-jenkins/hooks","issue_events_url":"https://api.github.com/repos/a1fred/django-jenkins/issues/events{/number}","events_url":"https://api.github.com/repos/a1fred/django-jenkins/events","assignees_url":"https://api.github.com/repos/a1fred/django-jenkins/assignees{/user}","branches_url":"https://api.github.com/repos/a1fred/django-jenkins/branches{/branch}","tags_url":"https://api.github.com/repos/a1fred/django-jenkins/tags","blobs_url":"https://api.github.com/repos/a1fred/django-jenkins/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/a1fred/django-jenkins/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/a1fred/django-jenkins/git/refs{/sha}","trees_url":"https://api.github.com/repos/a1fred/django-jenkins/git/trees{/sha}","statuses_url":"https://api.github.com/repos/a1fred/django-jenkins/statuses/{sha}","languages_url":"https://api.github.com/repos/a1fred/django-jenkins/languages","stargazers_url":"https://api.github.com/repos/a1fred/django-jenkins/stargazers","contributors_url":"https://api.github.com/repos/a1fred/django-jenkins/contributors","subscribers_url":"https://api.github.com/repos/a1fred/django-jenkins/subscribers","subscription_url":"https://api.github.com/repos/a1fred/django-jenkins/subscription","commits_url":"https://api.github.com/repos/a1fred/django-jenkins/commits{/sha}","git_commits_url":"https://api.github.com/repos/a1fred/django-jenkins/git/commits{/sha}","comments_url":"https://api.github.com/repos/a1fred/django-jenkins/comments{/number}","issue_comment_url":"https://api.github.com/repos/a1fred/django-jenkins/issues/comments{/number}","contents_url":"https://api.github.com/repos/a1fred/django-jenkins/contents/{+path}","compare_url":"https://api.github.com/repos/a1fred/django-jenkins/compare/{base}...{head}","merges_url":"https://api.github.com/repos/a1fred/django-jenkins/merges","archive_url":"https://api.github.com/repos/a1fred/django-jenkins/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/a1fred/django-jenkins/downloads","issues_url":"https://api.github.com/repos/a1fred/django-jenkins/issues{/number}","pulls_url":"https://api.github.com/repos/a1fred/django-jenkins/pulls{/number}","milestones_url":"https://api.github.com/repos/a1fred/django-jenkins/milestones{/number}","notifications_url":"https://api.github.com/repos/a1fred/django-jenkins/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/a1fred/django-jenkins/labels{/name}","releases_url":"https://api.github.com/repos/a1fred/django-jenkins/releases{/id}","deployments_url":"https://api.github.com/repos/a1fred/django-jenkins/deployments","created_at":"2016-08-08T14:41:59Z","updated_at":"2016-08-08T14:42:00Z","pushed_at":"2016-08-08T14:43:30Z","git_url":"git://github.com/a1fred/django-jenkins.git","ssh_url":"git@github.com:a1fred/django-jenkins.git","clone_url":"https://github.com/a1fred/django-jenkins.git","svn_url":"https://github.com/a1fred/django-jenkins","homepage":"","size":489,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":false,"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":"kmmbvnr:master","ref":"master","sha":"7b75fe6440a32b1a274270289b47d535ae7fcf1d","user":{"login":"kmmbvnr","id":282529,"avatar_url":"https://avatars.githubusercontent.com/u/282529?v=3","gravatar_id":"","url":"https://api.github.com/users/kmmbvnr","html_url":"https://github.com/kmmbvnr","followers_url":"https://api.github.com/users/kmmbvnr/followers","following_url":"https://api.github.com/users/kmmbvnr/following{/other_user}","gists_url":"https://api.github.com/users/kmmbvnr/gists{/gist_id}","starred_url":"https://api.github.com/users/kmmbvnr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kmmbvnr/subscriptions","organizations_url":"https://api.github.com/users/kmmbvnr/orgs","repos_url":"https://api.github.com/users/kmmbvnr/repos","events_url":"https://api.github.com/users/kmmbvnr/events{/privacy}","received_events_url":"https://api.github.com/users/kmmbvnr/received_events","type":"User","site_admin":false},"repo":{"id":753048,"name":"django-jenkins","full_name":"kmmbvnr/django-jenkins","owner":{"login":"kmmbvnr","id":282529,"avatar_url":"https://avatars.githubusercontent.com/u/282529?v=3","gravatar_id":"","url":"https://api.github.com/users/kmmbvnr","html_url":"https://github.com/kmmbvnr","followers_url":"https://api.github.com/users/kmmbvnr/followers","following_url":"https://api.github.com/users/kmmbvnr/following{/other_user}","gists_url":"https://api.github.com/users/kmmbvnr/gists{/gist_id}","starred_url":"https://api.github.com/users/kmmbvnr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kmmbvnr/subscriptions","organizations_url":"https://api.github.com/users/kmmbvnr/orgs","repos_url":"https://api.github.com/users/kmmbvnr/repos","events_url":"https://api.github.com/users/kmmbvnr/events{/privacy}","received_events_url":"https://api.github.com/users/kmmbvnr/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/kmmbvnr/django-jenkins","description":"Plug and play continuous integration with django and jenkins","fork":false,"url":"https://api.github.com/repos/kmmbvnr/django-jenkins","forks_url":"https://api.github.com/repos/kmmbvnr/django-jenkins/forks","keys_url":"https://api.github.com/repos/kmmbvnr/django-jenkins/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kmmbvnr/django-jenkins/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kmmbvnr/django-jenkins/teams","hooks_url":"https://api.github.com/repos/kmmbvnr/django-jenkins/hooks","issue_events_url":"https://api.github.com/repos/kmmbvnr/django-jenkins/issues/events{/number}","events_url":"https://api.github.com/repos/kmmbvnr/django-jenkins/events","assignees_url":"https://api.github.com/repos/kmmbvnr/django-jenkins/assignees{/user}","branches_url":"https://api.github.com/repos/kmmbvnr/django-jenkins/branches{/branch}","tags_url":"https://api.github.com/repos/kmmbvnr/django-jenkins/tags","blobs_url":"https://api.github.com/repos/kmmbvnr/django-jenkins/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kmmbvnr/django-jenkins/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kmmbvnr/django-jenkins/git/refs{/sha}","trees_url":"https://api.github.com/repos/kmmbvnr/django-jenkins/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kmmbvnr/django-jenkins/statuses/{sha}","languages_url":"https://api.github.com/repos/kmmbvnr/django-jenkins/languages","stargazers_url":"https://api.github.com/repos/kmmbvnr/django-jenkins/stargazers","contributors_url":"https://api.github.com/repos/kmmbvnr/django-jenkins/contributors","subscribers_url":"https://api.github.com/repos/kmmbvnr/django-jenkins/subscribers","subscription_url":"https://api.github.com/repos/kmmbvnr/django-jenkins/subscription","commits_url":"https://api.github.com/repos/kmmbvnr/django-jenkins/commits{/sha}","git_commits_url":"https://api.github.com/repos/kmmbvnr/django-jenkins/git/commits{/sha}","comments_url":"https://api.github.com/repos/kmmbvnr/django-jenkins/comments{/number}","issue_comment_url":"https://api.github.com/repos/kmmbvnr/django-jenkins/issues/comments{/number}","contents_url":"https://api.github.com/repos/kmmbvnr/django-jenkins/contents/{+path}","compare_url":"https://api.github.com/repos/kmmbvnr/django-jenkins/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kmmbvnr/django-jenkins/merges","archive_url":"https://api.github.com/repos/kmmbvnr/django-jenkins/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kmmbvnr/django-jenkins/downloads","issues_url":"https://api.github.com/repos/kmmbvnr/django-jenkins/issues{/number}","pulls_url":"https://api.github.com/repos/kmmbvnr/django-jenkins/pulls{/number}","milestones_url":"https://api.github.com/repos/kmmbvnr/django-jenkins/milestones{/number}","notifications_url":"https://api.github.com/repos/kmmbvnr/django-jenkins/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kmmbvnr/django-jenkins/labels{/name}","releases_url":"https://api.github.com/repos/kmmbvnr/django-jenkins/releases{/id}","deployments_url":"https://api.github.com/repos/kmmbvnr/django-jenkins/deployments","created_at":"2010-07-02T08:55:14Z","updated_at":"2016-08-08T08:45:32Z","pushed_at":"2016-08-08T14:45:58Z","git_url":"git://github.com/kmmbvnr/django-jenkins.git","ssh_url":"git@github.com:kmmbvnr/django-jenkins.git","clone_url":"https://github.com/kmmbvnr/django-jenkins.git","svn_url":"https://github.com/kmmbvnr/django-jenkins","homepage":"","size":801,"stargazers_count":746,"watchers_count":746,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":221,"mirror_url":null,"open_issues_count":6,"forks":221,"open_issues":6,"watchers":746,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/kmmbvnr/django-jenkins/pulls/342"},"html":{"href":"https://github.com/kmmbvnr/django-jenkins/pull/342"},"issue":{"href":"https://api.github.com/repos/kmmbvnr/django-jenkins/issues/342"},"comments":{"href":"https://api.github.com/repos/kmmbvnr/django-jenkins/issues/342/comments"},"review_comments":{"href":"https://api.github.com/repos/kmmbvnr/django-jenkins/pulls/342/comments"},"review_comment":{"href":"https://api.github.com/repos/kmmbvnr/django-jenkins/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/kmmbvnr/django-jenkins/pulls/342/commits"},"statuses":{"href":"https://api.github.com/repos/kmmbvnr/django-jenkins/statuses/5fde02c379a894b6b5b5f007ffaef461de23c172"}}}}
{"actor":{"display_login":"kmmbvnr"}}