{"action":"created","comment":{"url":"https://api.github.com/repos/hpcugent/easybuild-framework/pulls/comments/53234998","id":53234998,"diff_hunk":"@@ -0,0 +1,115 @@\n+##\n+# Copyright 2016 Ghent University\n+#\n+# This file is part of EasyBuild,\n+# originally created by the HPC team of Ghent University (http://ugent.be/hpc/en),\n+# with support of Ghent University (http://ugent.be/hpc),\n+# the Flemish Supercomputer Centre (VSC) (https://vscentrum.be/nl/en),\n+# the Hercules foundation (http://www.herculesstichting.be/in_English)\n+# and the Department of Economy, Science and Innovation (EWI) (http://www.ewi-vlaanderen.be/en).\n+#\n+# http://github.com/hpcugent/easybuild\n+#\n+# EasyBuild is free software: you can redistribute it and/or modify\n+# it under the terms of the GNU General Public License as published by\n+# the Free Software Foundation v2.\n+#\n+# EasyBuild is distributed in the hope that it will be useful,\n+# but WITHOUT ANY WARRANTY; without even the implied warranty of\n+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n+# GNU General Public License for more details.\n+#\n+# You should have received a copy of the GNU General Public License\n+# along with EasyBuild.  If not, see <http://www.gnu.org/licenses/>.\n+##\n+\"\"\"\n+Style tests for easyconfig files using pep8.\n+\n+@author: Ward Poelmans (Ghent University)\n+\"\"\"\n+\n+import re\n+from vsc.utils import fancylogger\n+\n+from easybuild.tools.utilities import only_if_module_is_available\n+\n+try:\n+    import pep8\n+except ImportError:\n+    pass\n+\n+_log = fancylogger.getLogger('easyconfig.style', fname=False)\n+\n+\n+# any function starting with eb_check_ will be added to the tests\n+# if the test number is added to the select list. The test number is\n+# definied as AXXX where A is either E or W and XXX is a 3 digit number.\n+# It should be mentioned in the docstring as a single word.\n+# Read the pep8 docs to understand the arguments of these functions\n+def eb_check_trailing_whitespace(physical_line, lines, line_number, total_lines):\n+    \"\"\"\n+    W299","path":"easybuild/framework/easyconfig/style.py","position":51,"original_position":51,"commit_id":"276f17a45d8a8661e25e79b276abc3ba0e3b25f8","original_commit_id":"276f17a45d8a8661e25e79b276abc3ba0e3b25f8","user":{"login":"boegel","id":620876,"avatar_url":"https://avatars.githubusercontent.com/u/620876?v=3","gravatar_id":"","url":"https://api.github.com/users/boegel","html_url":"https://github.com/boegel","followers_url":"https://api.github.com/users/boegel/followers","following_url":"https://api.github.com/users/boegel/following{/other_user}","gists_url":"https://api.github.com/users/boegel/gists{/gist_id}","starred_url":"https://api.github.com/users/boegel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/boegel/subscriptions","organizations_url":"https://api.github.com/users/boegel/orgs","repos_url":"https://api.github.com/users/boegel/repos","events_url":"https://api.github.com/users/boegel/events{/privacy}","received_events_url":"https://api.github.com/users/boegel/received_events","type":"User","site_admin":false},"body":"why `299`?\r\n\r\nshouldn't be define our own range like `9xy` (or whatever other range that is not used by PEP8)?","created_at":"2016-02-17T21:34:36Z","updated_at":"2016-02-17T21:34:36Z","html_url":"https://github.com/hpcugent/easybuild-framework/pull/1618#discussion_r53234998","pull_request_url":"https://api.github.com/repos/hpcugent/easybuild-framework/pulls/1618","_links":{"self":{"href":"https://api.github.com/repos/hpcugent/easybuild-framework/pulls/comments/53234998"},"html":{"href":"https://github.com/hpcugent/easybuild-framework/pull/1618#discussion_r53234998"},"pull_request":{"href":"https://api.github.com/repos/hpcugent/easybuild-framework/pulls/1618"}}},"pull_request":{"url":"https://api.github.com/repos/hpcugent/easybuild-framework/pulls/1618","id":59673598,"html_url":"https://github.com/hpcugent/easybuild-framework/pull/1618","diff_url":"https://github.com/hpcugent/easybuild-framework/pull/1618.diff","patch_url":"https://github.com/hpcugent/easybuild-framework/pull/1618.patch","issue_url":"https://api.github.com/repos/hpcugent/easybuild-framework/issues/1618","number":1618,"state":"open","locked":false,"title":"Add style tests","user":{"login":"wpoely86","id":424570,"avatar_url":"https://avatars.githubusercontent.com/u/424570?v=3","gravatar_id":"","url":"https://api.github.com/users/wpoely86","html_url":"https://github.com/wpoely86","followers_url":"https://api.github.com/users/wpoely86/followers","following_url":"https://api.github.com/users/wpoely86/following{/other_user}","gists_url":"https://api.github.com/users/wpoely86/gists{/gist_id}","starred_url":"https://api.github.com/users/wpoely86/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wpoely86/subscriptions","organizations_url":"https://api.github.com/users/wpoely86/orgs","repos_url":"https://api.github.com/users/wpoely86/repos","events_url":"https://api.github.com/users/wpoely86/events{/privacy}","received_events_url":"https://api.github.com/users/wpoely86/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-02-17T16:52:55Z","updated_at":"2016-02-17T21:34:36Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b4c9190833cafd717f7e823ee04a71e9be06ab2a","assignee":null,"milestone":{"url":"https://api.github.com/repos/hpcugent/easybuild-framework/milestones/34","html_url":"https://github.com/hpcugent/easybuild-framework/milestones/v2.7.0","labels_url":"https://api.github.com/repos/hpcugent/easybuild-framework/milestones/34/labels","id":1534739,"number":34,"title":"v2.7.0","description":"","creator":{"login":"boegel","id":620876,"avatar_url":"https://avatars.githubusercontent.com/u/620876?v=3","gravatar_id":"","url":"https://api.github.com/users/boegel","html_url":"https://github.com/boegel","followers_url":"https://api.github.com/users/boegel/followers","following_url":"https://api.github.com/users/boegel/following{/other_user}","gists_url":"https://api.github.com/users/boegel/gists{/gist_id}","starred_url":"https://api.github.com/users/boegel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/boegel/subscriptions","organizations_url":"https://api.github.com/users/boegel/orgs","repos_url":"https://api.github.com/users/boegel/repos","events_url":"https://api.github.com/users/boegel/events{/privacy}","received_events_url":"https://api.github.com/users/boegel/received_events","type":"User","site_admin":false},"open_issues":68,"closed_issues":23,"state":"open","created_at":"2016-01-22T15:25:29Z","updated_at":"2016-02-17T21:30:36Z","due_on":"2016-03-15T23:00:00Z","closed_at":null},"commits_url":"https://api.github.com/repos/hpcugent/easybuild-framework/pulls/1618/commits","review_comments_url":"https://api.github.com/repos/hpcugent/easybuild-framework/pulls/1618/comments","review_comment_url":"https://api.github.com/repos/hpcugent/easybuild-framework/pulls/comments{/number}","comments_url":"https://api.github.com/repos/hpcugent/easybuild-framework/issues/1618/comments","statuses_url":"https://api.github.com/repos/hpcugent/easybuild-framework/statuses/276f17a45d8a8661e25e79b276abc3ba0e3b25f8","head":{"label":"wpoely86:style","ref":"style","sha":"276f17a45d8a8661e25e79b276abc3ba0e3b25f8","user":{"login":"wpoely86","id":424570,"avatar_url":"https://avatars.githubusercontent.com/u/424570?v=3","gravatar_id":"","url":"https://api.github.com/users/wpoely86","html_url":"https://github.com/wpoely86","followers_url":"https://api.github.com/users/wpoely86/followers","following_url":"https://api.github.com/users/wpoely86/following{/other_user}","gists_url":"https://api.github.com/users/wpoely86/gists{/gist_id}","starred_url":"https://api.github.com/users/wpoely86/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wpoely86/subscriptions","organizations_url":"https://api.github.com/users/wpoely86/orgs","repos_url":"https://api.github.com/users/wpoely86/repos","events_url":"https://api.github.com/users/wpoely86/events{/privacy}","received_events_url":"https://api.github.com/users/wpoely86/received_events","type":"User","site_admin":false},"repo":{"id":11451155,"name":"easybuild-framework","full_name":"wpoely86/easybuild-framework","owner":{"login":"wpoely86","id":424570,"avatar_url":"https://avatars.githubusercontent.com/u/424570?v=3","gravatar_id":"","url":"https://api.github.com/users/wpoely86","html_url":"https://github.com/wpoely86","followers_url":"https://api.github.com/users/wpoely86/followers","following_url":"https://api.github.com/users/wpoely86/following{/other_user}","gists_url":"https://api.github.com/users/wpoely86/gists{/gist_id}","starred_url":"https://api.github.com/users/wpoely86/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wpoely86/subscriptions","organizations_url":"https://api.github.com/users/wpoely86/orgs","repos_url":"https://api.github.com/users/wpoely86/repos","events_url":"https://api.github.com/users/wpoely86/events{/privacy}","received_events_url":"https://api.github.com/users/wpoely86/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/wpoely86/easybuild-framework","description":"EasyBuild is a software installation framework in Python that allows you to install software in a structured and robust way. ","fork":true,"url":"https://api.github.com/repos/wpoely86/easybuild-framework","forks_url":"https://api.github.com/repos/wpoely86/easybuild-framework/forks","keys_url":"https://api.github.com/repos/wpoely86/easybuild-framework/keys{/key_id}","collaborators_url":"https://api.github.com/repos/wpoely86/easybuild-framework/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/wpoely86/easybuild-framework/teams","hooks_url":"https://api.github.com/repos/wpoely86/easybuild-framework/hooks","issue_events_url":"https://api.github.com/repos/wpoely86/easybuild-framework/issues/events{/number}","events_url":"https://api.github.com/repos/wpoely86/easybuild-framework/events","assignees_url":"https://api.github.com/repos/wpoely86/easybuild-framework/assignees{/user}","branches_url":"https://api.github.com/repos/wpoely86/easybuild-framework/branches{/branch}","tags_url":"https://api.github.com/repos/wpoely86/easybuild-framework/tags","blobs_url":"https://api.github.com/repos/wpoely86/easybuild-framework/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/wpoely86/easybuild-framework/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/wpoely86/easybuild-framework/git/refs{/sha}","trees_url":"https://api.github.com/repos/wpoely86/easybuild-framework/git/trees{/sha}","statuses_url":"https://api.github.com/repos/wpoely86/easybuild-framework/statuses/{sha}","languages_url":"https://api.github.com/repos/wpoely86/easybuild-framework/languages","stargazers_url":"https://api.github.com/repos/wpoely86/easybuild-framework/stargazers","contributors_url":"https://api.github.com/repos/wpoely86/easybuild-framework/contributors","subscribers_url":"https://api.github.com/repos/wpoely86/easybuild-framework/subscribers","subscription_url":"https://api.github.com/repos/wpoely86/easybuild-framework/subscription","commits_url":"https://api.github.com/repos/wpoely86/easybuild-framework/commits{/sha}","git_commits_url":"https://api.github.com/repos/wpoely86/easybuild-framework/git/commits{/sha}","comments_url":"https://api.github.com/repos/wpoely86/easybuild-framework/comments{/number}","issue_comment_url":"https://api.github.com/repos/wpoely86/easybuild-framework/issues/comments{/number}","contents_url":"https://api.github.com/repos/wpoely86/easybuild-framework/contents/{+path}","compare_url":"https://api.github.com/repos/wpoely86/easybuild-framework/compare/{base}...{head}","merges_url":"https://api.github.com/repos/wpoely86/easybuild-framework/merges","archive_url":"https://api.github.com/repos/wpoely86/easybuild-framework/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/wpoely86/easybuild-framework/downloads","issues_url":"https://api.github.com/repos/wpoely86/easybuild-framework/issues{/number}","pulls_url":"https://api.github.com/repos/wpoely86/easybuild-framework/pulls{/number}","milestones_url":"https://api.github.com/repos/wpoely86/easybuild-framework/milestones{/number}","notifications_url":"https://api.github.com/repos/wpoely86/easybuild-framework/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/wpoely86/easybuild-framework/labels{/name}","releases_url":"https://api.github.com/repos/wpoely86/easybuild-framework/releases{/id}","deployments_url":"https://api.github.com/repos/wpoely86/easybuild-framework/deployments","created_at":"2013-07-16T14:10:30Z","updated_at":"2015-03-09T13:12:15Z","pushed_at":"2016-02-17T16:52:24Z","git_url":"git://github.com/wpoely86/easybuild-framework.git","ssh_url":"git@github.com:wpoely86/easybuild-framework.git","clone_url":"https://github.com/wpoely86/easybuild-framework.git","svn_url":"https://github.com/wpoely86/easybuild-framework","homepage":"http://hpcugent.github.com/easybuild/","size":12107,"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":"develop"}},"base":{"label":"hpcugent:develop","ref":"develop","sha":"6cbf668c2e2686bb6e57d148127828997b744ba7","user":{"login":"hpcugent","id":1515263,"avatar_url":"https://avatars.githubusercontent.com/u/1515263?v=3","gravatar_id":"","url":"https://api.github.com/users/hpcugent","html_url":"https://github.com/hpcugent","followers_url":"https://api.github.com/users/hpcugent/followers","following_url":"https://api.github.com/users/hpcugent/following{/other_user}","gists_url":"https://api.github.com/users/hpcugent/gists{/gist_id}","starred_url":"https://api.github.com/users/hpcugent/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hpcugent/subscriptions","organizations_url":"https://api.github.com/users/hpcugent/orgs","repos_url":"https://api.github.com/users/hpcugent/repos","events_url":"https://api.github.com/users/hpcugent/events{/privacy}","received_events_url":"https://api.github.com/users/hpcugent/received_events","type":"Organization","site_admin":false},"repo":{"id":3662176,"name":"easybuild-framework","full_name":"hpcugent/easybuild-framework","owner":{"login":"hpcugent","id":1515263,"avatar_url":"https://avatars.githubusercontent.com/u/1515263?v=3","gravatar_id":"","url":"https://api.github.com/users/hpcugent","html_url":"https://github.com/hpcugent","followers_url":"https://api.github.com/users/hpcugent/followers","following_url":"https://api.github.com/users/hpcugent/following{/other_user}","gists_url":"https://api.github.com/users/hpcugent/gists{/gist_id}","starred_url":"https://api.github.com/users/hpcugent/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hpcugent/subscriptions","organizations_url":"https://api.github.com/users/hpcugent/orgs","repos_url":"https://api.github.com/users/hpcugent/repos","events_url":"https://api.github.com/users/hpcugent/events{/privacy}","received_events_url":"https://api.github.com/users/hpcugent/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/hpcugent/easybuild-framework","description":"EasyBuild is a software installation framework in Python that allows you to install software in a structured and robust way. ","fork":false,"url":"https://api.github.com/repos/hpcugent/easybuild-framework","forks_url":"https://api.github.com/repos/hpcugent/easybuild-framework/forks","keys_url":"https://api.github.com/repos/hpcugent/easybuild-framework/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hpcugent/easybuild-framework/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hpcugent/easybuild-framework/teams","hooks_url":"https://api.github.com/repos/hpcugent/easybuild-framework/hooks","issue_events_url":"https://api.github.com/repos/hpcugent/easybuild-framework/issues/events{/number}","events_url":"https://api.github.com/repos/hpcugent/easybuild-framework/events","assignees_url":"https://api.github.com/repos/hpcugent/easybuild-framework/assignees{/user}","branches_url":"https://api.github.com/repos/hpcugent/easybuild-framework/branches{/branch}","tags_url":"https://api.github.com/repos/hpcugent/easybuild-framework/tags","blobs_url":"https://api.github.com/repos/hpcugent/easybuild-framework/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hpcugent/easybuild-framework/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hpcugent/easybuild-framework/git/refs{/sha}","trees_url":"https://api.github.com/repos/hpcugent/easybuild-framework/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hpcugent/easybuild-framework/statuses/{sha}","languages_url":"https://api.github.com/repos/hpcugent/easybuild-framework/languages","stargazers_url":"https://api.github.com/repos/hpcugent/easybuild-framework/stargazers","contributors_url":"https://api.github.com/repos/hpcugent/easybuild-framework/contributors","subscribers_url":"https://api.github.com/repos/hpcugent/easybuild-framework/subscribers","subscription_url":"https://api.github.com/repos/hpcugent/easybuild-framework/subscription","commits_url":"https://api.github.com/repos/hpcugent/easybuild-framework/commits{/sha}","git_commits_url":"https://api.github.com/repos/hpcugent/easybuild-framework/git/commits{/sha}","comments_url":"https://api.github.com/repos/hpcugent/easybuild-framework/comments{/number}","issue_comment_url":"https://api.github.com/repos/hpcugent/easybuild-framework/issues/comments{/number}","contents_url":"https://api.github.com/repos/hpcugent/easybuild-framework/contents/{+path}","compare_url":"https://api.github.com/repos/hpcugent/easybuild-framework/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hpcugent/easybuild-framework/merges","archive_url":"https://api.github.com/repos/hpcugent/easybuild-framework/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hpcugent/easybuild-framework/downloads","issues_url":"https://api.github.com/repos/hpcugent/easybuild-framework/issues{/number}","pulls_url":"https://api.github.com/repos/hpcugent/easybuild-framework/pulls{/number}","milestones_url":"https://api.github.com/repos/hpcugent/easybuild-framework/milestones{/number}","notifications_url":"https://api.github.com/repos/hpcugent/easybuild-framework/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hpcugent/easybuild-framework/labels{/name}","releases_url":"https://api.github.com/repos/hpcugent/easybuild-framework/releases{/id}","deployments_url":"https://api.github.com/repos/hpcugent/easybuild-framework/deployments","created_at":"2012-03-08T17:07:43Z","updated_at":"2016-02-07T14:25:11Z","pushed_at":"2016-02-17T21:28:15Z","git_url":"git://github.com/hpcugent/easybuild-framework.git","ssh_url":"git@github.com:hpcugent/easybuild-framework.git","clone_url":"https://github.com/hpcugent/easybuild-framework.git","svn_url":"https://github.com/hpcugent/easybuild-framework","homepage":"http://hpcugent.github.com/easybuild/","size":13446,"stargazers_count":53,"watchers_count":53,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":84,"mirror_url":null,"open_issues_count":309,"forks":84,"open_issues":309,"watchers":53,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/hpcugent/easybuild-framework/pulls/1618"},"html":{"href":"https://github.com/hpcugent/easybuild-framework/pull/1618"},"issue":{"href":"https://api.github.com/repos/hpcugent/easybuild-framework/issues/1618"},"comments":{"href":"https://api.github.com/repos/hpcugent/easybuild-framework/issues/1618/comments"},"review_comments":{"href":"https://api.github.com/repos/hpcugent/easybuild-framework/pulls/1618/comments"},"review_comment":{"href":"https://api.github.com/repos/hpcugent/easybuild-framework/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/hpcugent/easybuild-framework/pulls/1618/commits"},"statuses":{"href":"https://api.github.com/repos/hpcugent/easybuild-framework/statuses/276f17a45d8a8661e25e79b276abc3ba0e3b25f8"}}}}