{"action":"created","comment":{"url":"https://api.github.com/repos/coala/coala-bears/pulls/comments/89692560","pull_request_review_id":10232622,"id":89692560,"diff_hunk":"@@ -0,0 +1,46 @@\n+import os\n+\n+from coalib.bearlib.abstractions.Linter import linter\n+from coalib.bears.requirements.PipRequirement import PipRequirement\n+from coalib.results.RESULT_SEVERITY import RESULT_SEVERITY\n+\n+\n+@linter(executable='check-manifest',\n+        output_format='corrected',\n+        )\n+class CheckmanifestBear:\n+    \"\"\"\n+    Check MANIFEST.in in a Python source package for completeness\n+\n+    Check <https://pypi.python.org/pypi/rstcheck> for more information.\n+    \"\"\"\n+\n+    LANGUAGES = {'MANIFEST.in'}\n+    REQUIREMENTS = {PipRequirement('check-manifest', '0.34')}\n+    AUTHORS = {'The coala developers'}\n+    AUTHORS_EMAILS = {'coala-devel@googlegroups.com'}\n+    LICENSE = 'AGPL-3.0'\n+    CAN_DETECT = {'Syntax'}\n+\n+    @staticmethod\n+    def create_arguments(filename, file, config_file,\n+                         create: bool=False, update: bool=False, ignore: list=None):\n+        \"\"\"\n+        :param create:\n+            create a MANIFEST.in if missing.\n+        :param update:\n+            append suggestions to MANIFEST.in (implies --create).\n+        :param ignore:\n+            ignore files/directories matching these comma-\n+            separated patterns\n+        \"\"\"\n+        extra = ''\n+        if create:\n+            extra += '-c '\n+        if update:\n+            extra += '-u '\n+        args = ()\n+        if ignore:\n+          args = (extra + '--ignore=' +","path":"bears/general/CheckmanifestBear.py","position":44,"original_position":44,"commit_id":"dd873ac5d63d3eb3210f70fbc7dd3400fc632be3","original_commit_id":"dd873ac5d63d3eb3210f70fbc7dd3400fc632be3","user":{"login":"gitmate-bot","id":15421488,"avatar_url":"https://avatars.githubusercontent.com/u/15421488?v=3","gravatar_id":"","url":"https://api.github.com/users/gitmate-bot","html_url":"https://github.com/gitmate-bot","followers_url":"https://api.github.com/users/gitmate-bot/followers","following_url":"https://api.github.com/users/gitmate-bot/following{/other_user}","gists_url":"https://api.github.com/users/gitmate-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/gitmate-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gitmate-bot/subscriptions","organizations_url":"https://api.github.com/users/gitmate-bot/orgs","repos_url":"https://api.github.com/users/gitmate-bot/repos","events_url":"https://api.github.com/users/gitmate-bot/events{/privacy}","received_events_url":"https://api.github.com/users/gitmate-bot/received_events","type":"User","site_admin":false},"body":"The code does not comply to PEP8.\n\n*PEP8Bear, severity NORMAL, section `autopep8`.*\n\nThe issue can be fixed by applying the following patch:\n\n```diff\n--- a/bears/general/CheckmanifestBear.py\n+++ b/bears/general/CheckmanifestBear.py\n@@ -41,6 +41,6 @@\n             extra += '-u '\n         args = ()\n         if ignore:\n-          args = (extra + '--ignore=' +\n-                  ','.join(ignore),)\n+            args = (extra + '--ignore=' +\n+                    ','.join(ignore),)\n         return args + (os.path.dirname(filename),)\n```","created_at":"2016-11-27T15:34:46Z","updated_at":"2016-11-27T15:34:47Z","html_url":"https://github.com/coala/coala-bears/pull/1066#discussion_r89692560","pull_request_url":"https://api.github.com/repos/coala/coala-bears/pulls/1066","_links":{"self":{"href":"https://api.github.com/repos/coala/coala-bears/pulls/comments/89692560"},"html":{"href":"https://github.com/coala/coala-bears/pull/1066#discussion_r89692560"},"pull_request":{"href":"https://api.github.com/repos/coala/coala-bears/pulls/1066"}}},"pull_request":{"url":"https://api.github.com/repos/coala/coala-bears/pulls/1066","id":95405970,"html_url":"https://github.com/coala/coala-bears/pull/1066","diff_url":"https://github.com/coala/coala-bears/pull/1066.diff","patch_url":"https://github.com/coala/coala-bears/pull/1066.patch","issue_url":"https://api.github.com/repos/coala/coala-bears/issues/1066","number":1066,"state":"open","locked":false,"title":"bears/general: Add CheckmanifestBear","user":{"login":"aptrishu","id":22702242,"avatar_url":"https://avatars.githubusercontent.com/u/22702242?v=3","gravatar_id":"","url":"https://api.github.com/users/aptrishu","html_url":"https://github.com/aptrishu","followers_url":"https://api.github.com/users/aptrishu/followers","following_url":"https://api.github.com/users/aptrishu/following{/other_user}","gists_url":"https://api.github.com/users/aptrishu/gists{/gist_id}","starred_url":"https://api.github.com/users/aptrishu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aptrishu/subscriptions","organizations_url":"https://api.github.com/users/aptrishu/orgs","repos_url":"https://api.github.com/users/aptrishu/repos","events_url":"https://api.github.com/users/aptrishu/events{/privacy}","received_events_url":"https://api.github.com/users/aptrishu/received_events","type":"User","site_admin":false},"body":"Adds CheckmanifestBear for https://pypi.python.org/pypi/check-manifest\r\nto check MANIFEST.in for completeness.\r\n\r\nCloses https://github.com/coala/coala-bears/issues/798","created_at":"2016-11-27T15:22:36Z","updated_at":"2016-11-27T15:34:47Z","closed_at":null,"merged_at":null,"merge_commit_sha":"7e4e6d52f12502f8fff13bdff7ccb7b4dd3dda29","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/coala/coala-bears/pulls/1066/commits","review_comments_url":"https://api.github.com/repos/coala/coala-bears/pulls/1066/comments","review_comment_url":"https://api.github.com/repos/coala/coala-bears/pulls/comments{/number}","comments_url":"https://api.github.com/repos/coala/coala-bears/issues/1066/comments","statuses_url":"https://api.github.com/repos/coala/coala-bears/statuses/dd873ac5d63d3eb3210f70fbc7dd3400fc632be3","head":{"label":"aptrishu:issue798","ref":"issue798","sha":"dd873ac5d63d3eb3210f70fbc7dd3400fc632be3","user":{"login":"aptrishu","id":22702242,"avatar_url":"https://avatars.githubusercontent.com/u/22702242?v=3","gravatar_id":"","url":"https://api.github.com/users/aptrishu","html_url":"https://github.com/aptrishu","followers_url":"https://api.github.com/users/aptrishu/followers","following_url":"https://api.github.com/users/aptrishu/following{/other_user}","gists_url":"https://api.github.com/users/aptrishu/gists{/gist_id}","starred_url":"https://api.github.com/users/aptrishu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aptrishu/subscriptions","organizations_url":"https://api.github.com/users/aptrishu/orgs","repos_url":"https://api.github.com/users/aptrishu/repos","events_url":"https://api.github.com/users/aptrishu/events{/privacy}","received_events_url":"https://api.github.com/users/aptrishu/received_events","type":"User","site_admin":false},"repo":{"id":72094066,"name":"coala-bears","full_name":"aptrishu/coala-bears","owner":{"login":"aptrishu","id":22702242,"avatar_url":"https://avatars.githubusercontent.com/u/22702242?v=3","gravatar_id":"","url":"https://api.github.com/users/aptrishu","html_url":"https://github.com/aptrishu","followers_url":"https://api.github.com/users/aptrishu/followers","following_url":"https://api.github.com/users/aptrishu/following{/other_user}","gists_url":"https://api.github.com/users/aptrishu/gists{/gist_id}","starred_url":"https://api.github.com/users/aptrishu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aptrishu/subscriptions","organizations_url":"https://api.github.com/users/aptrishu/orgs","repos_url":"https://api.github.com/users/aptrishu/repos","events_url":"https://api.github.com/users/aptrishu/events{/privacy}","received_events_url":"https://api.github.com/users/aptrishu/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/aptrishu/coala-bears","description":"Bears for coala","fork":true,"url":"https://api.github.com/repos/aptrishu/coala-bears","forks_url":"https://api.github.com/repos/aptrishu/coala-bears/forks","keys_url":"https://api.github.com/repos/aptrishu/coala-bears/keys{/key_id}","collaborators_url":"https://api.github.com/repos/aptrishu/coala-bears/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/aptrishu/coala-bears/teams","hooks_url":"https://api.github.com/repos/aptrishu/coala-bears/hooks","issue_events_url":"https://api.github.com/repos/aptrishu/coala-bears/issues/events{/number}","events_url":"https://api.github.com/repos/aptrishu/coala-bears/events","assignees_url":"https://api.github.com/repos/aptrishu/coala-bears/assignees{/user}","branches_url":"https://api.github.com/repos/aptrishu/coala-bears/branches{/branch}","tags_url":"https://api.github.com/repos/aptrishu/coala-bears/tags","blobs_url":"https://api.github.com/repos/aptrishu/coala-bears/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/aptrishu/coala-bears/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/aptrishu/coala-bears/git/refs{/sha}","trees_url":"https://api.github.com/repos/aptrishu/coala-bears/git/trees{/sha}","statuses_url":"https://api.github.com/repos/aptrishu/coala-bears/statuses/{sha}","languages_url":"https://api.github.com/repos/aptrishu/coala-bears/languages","stargazers_url":"https://api.github.com/repos/aptrishu/coala-bears/stargazers","contributors_url":"https://api.github.com/repos/aptrishu/coala-bears/contributors","subscribers_url":"https://api.github.com/repos/aptrishu/coala-bears/subscribers","subscription_url":"https://api.github.com/repos/aptrishu/coala-bears/subscription","commits_url":"https://api.github.com/repos/aptrishu/coala-bears/commits{/sha}","git_commits_url":"https://api.github.com/repos/aptrishu/coala-bears/git/commits{/sha}","comments_url":"https://api.github.com/repos/aptrishu/coala-bears/comments{/number}","issue_comment_url":"https://api.github.com/repos/aptrishu/coala-bears/issues/comments{/number}","contents_url":"https://api.github.com/repos/aptrishu/coala-bears/contents/{+path}","compare_url":"https://api.github.com/repos/aptrishu/coala-bears/compare/{base}...{head}","merges_url":"https://api.github.com/repos/aptrishu/coala-bears/merges","archive_url":"https://api.github.com/repos/aptrishu/coala-bears/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/aptrishu/coala-bears/downloads","issues_url":"https://api.github.com/repos/aptrishu/coala-bears/issues{/number}","pulls_url":"https://api.github.com/repos/aptrishu/coala-bears/pulls{/number}","milestones_url":"https://api.github.com/repos/aptrishu/coala-bears/milestones{/number}","notifications_url":"https://api.github.com/repos/aptrishu/coala-bears/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/aptrishu/coala-bears/labels{/name}","releases_url":"https://api.github.com/repos/aptrishu/coala-bears/releases{/id}","deployments_url":"https://api.github.com/repos/aptrishu/coala-bears/deployments","created_at":"2016-10-27T09:43:22Z","updated_at":"2016-10-27T09:43:24Z","pushed_at":"2016-11-27T15:34:16Z","git_url":"git://github.com/aptrishu/coala-bears.git","ssh_url":"git@github.com:aptrishu/coala-bears.git","clone_url":"https://github.com/aptrishu/coala-bears.git","svn_url":"https://github.com/aptrishu/coala-bears","homepage":"https://coala.io/","size":1254,"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":"coala:master","ref":"master","sha":"2988531a988a032cf4a8f95c17a0ee9007dfc48f","user":{"login":"coala","id":10620750,"avatar_url":"https://avatars.githubusercontent.com/u/10620750?v=3","gravatar_id":"","url":"https://api.github.com/users/coala","html_url":"https://github.com/coala","followers_url":"https://api.github.com/users/coala/followers","following_url":"https://api.github.com/users/coala/following{/other_user}","gists_url":"https://api.github.com/users/coala/gists{/gist_id}","starred_url":"https://api.github.com/users/coala/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/coala/subscriptions","organizations_url":"https://api.github.com/users/coala/orgs","repos_url":"https://api.github.com/users/coala/repos","events_url":"https://api.github.com/users/coala/events{/privacy}","received_events_url":"https://api.github.com/users/coala/received_events","type":"Organization","site_admin":false},"repo":{"id":51688289,"name":"coala-bears","full_name":"coala/coala-bears","owner":{"login":"coala","id":10620750,"avatar_url":"https://avatars.githubusercontent.com/u/10620750?v=3","gravatar_id":"","url":"https://api.github.com/users/coala","html_url":"https://github.com/coala","followers_url":"https://api.github.com/users/coala/followers","following_url":"https://api.github.com/users/coala/following{/other_user}","gists_url":"https://api.github.com/users/coala/gists{/gist_id}","starred_url":"https://api.github.com/users/coala/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/coala/subscriptions","organizations_url":"https://api.github.com/users/coala/orgs","repos_url":"https://api.github.com/users/coala/repos","events_url":"https://api.github.com/users/coala/events{/privacy}","received_events_url":"https://api.github.com/users/coala/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/coala/coala-bears","description":"Bears for coala","fork":false,"url":"https://api.github.com/repos/coala/coala-bears","forks_url":"https://api.github.com/repos/coala/coala-bears/forks","keys_url":"https://api.github.com/repos/coala/coala-bears/keys{/key_id}","collaborators_url":"https://api.github.com/repos/coala/coala-bears/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/coala/coala-bears/teams","hooks_url":"https://api.github.com/repos/coala/coala-bears/hooks","issue_events_url":"https://api.github.com/repos/coala/coala-bears/issues/events{/number}","events_url":"https://api.github.com/repos/coala/coala-bears/events","assignees_url":"https://api.github.com/repos/coala/coala-bears/assignees{/user}","branches_url":"https://api.github.com/repos/coala/coala-bears/branches{/branch}","tags_url":"https://api.github.com/repos/coala/coala-bears/tags","blobs_url":"https://api.github.com/repos/coala/coala-bears/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/coala/coala-bears/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/coala/coala-bears/git/refs{/sha}","trees_url":"https://api.github.com/repos/coala/coala-bears/git/trees{/sha}","statuses_url":"https://api.github.com/repos/coala/coala-bears/statuses/{sha}","languages_url":"https://api.github.com/repos/coala/coala-bears/languages","stargazers_url":"https://api.github.com/repos/coala/coala-bears/stargazers","contributors_url":"https://api.github.com/repos/coala/coala-bears/contributors","subscribers_url":"https://api.github.com/repos/coala/coala-bears/subscribers","subscription_url":"https://api.github.com/repos/coala/coala-bears/subscription","commits_url":"https://api.github.com/repos/coala/coala-bears/commits{/sha}","git_commits_url":"https://api.github.com/repos/coala/coala-bears/git/commits{/sha}","comments_url":"https://api.github.com/repos/coala/coala-bears/comments{/number}","issue_comment_url":"https://api.github.com/repos/coala/coala-bears/issues/comments{/number}","contents_url":"https://api.github.com/repos/coala/coala-bears/contents/{+path}","compare_url":"https://api.github.com/repos/coala/coala-bears/compare/{base}...{head}","merges_url":"https://api.github.com/repos/coala/coala-bears/merges","archive_url":"https://api.github.com/repos/coala/coala-bears/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/coala/coala-bears/downloads","issues_url":"https://api.github.com/repos/coala/coala-bears/issues{/number}","pulls_url":"https://api.github.com/repos/coala/coala-bears/pulls{/number}","milestones_url":"https://api.github.com/repos/coala/coala-bears/milestones{/number}","notifications_url":"https://api.github.com/repos/coala/coala-bears/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/coala/coala-bears/labels{/name}","releases_url":"https://api.github.com/repos/coala/coala-bears/releases{/id}","deployments_url":"https://api.github.com/repos/coala/coala-bears/deployments","created_at":"2016-02-14T09:25:11Z","updated_at":"2016-11-21T11:53:13Z","pushed_at":"2016-11-27T15:34:17Z","git_url":"git://github.com/coala/coala-bears.git","ssh_url":"git@github.com:coala/coala-bears.git","clone_url":"https://github.com/coala/coala-bears.git","svn_url":"https://github.com/coala/coala-bears","homepage":"https://coala.io/","size":9603,"stargazers_count":66,"watchers_count":66,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":142,"mirror_url":null,"open_issues_count":227,"forks":142,"open_issues":227,"watchers":66,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/coala/coala-bears/pulls/1066"},"html":{"href":"https://github.com/coala/coala-bears/pull/1066"},"issue":{"href":"https://api.github.com/repos/coala/coala-bears/issues/1066"},"comments":{"href":"https://api.github.com/repos/coala/coala-bears/issues/1066/comments"},"review_comments":{"href":"https://api.github.com/repos/coala/coala-bears/pulls/1066/comments"},"review_comment":{"href":"https://api.github.com/repos/coala/coala-bears/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/coala/coala-bears/pulls/1066/commits"},"statuses":{"href":"https://api.github.com/repos/coala/coala-bears/statuses/dd873ac5d63d3eb3210f70fbc7dd3400fc632be3"}}}}
{"actor":{"display_login":"gitmate-bot"}}