From c99ccdea71a1817e82ddc948a33ebec17d3edc10 Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Aug 29 2016 09:25:52 +0000 Subject: Pep8 fixes to the pagure.hooks --- diff --git a/pagure/hooks/files/pagure_block_unsigned.py b/pagure/hooks/files/pagure_block_unsigned.py index c9bee63..111b813 100755 --- a/pagure/hooks/files/pagure_block_unsigned.py +++ b/pagure/hooks/files/pagure_block_unsigned.py @@ -54,7 +54,7 @@ def run_as_pre_receive_hook(): print 'Processing commit: %s' % commit signed = False for line in pagure.lib.git.read_git_lines( - ['log', '--no-walk', commit], abspath): + ['log', '--no-walk', commit], abspath): if line.lower().strip().startswith('signed-off-by'): signed = True break diff --git a/pagure/hooks/mail.py b/pagure/hooks/mail.py index cf67419..941e54c 100644 --- a/pagure/hooks/mail.py +++ b/pagure/hooks/mail.py @@ -66,8 +66,9 @@ class Mail(BaseHook): ''' Mail hooks. ''' name = 'Mail' - description = 'Generate notification emails for pushes to a git repository. '\ - 'This hook sends emails describing changes introduced by pushes to a git repository.' + description = 'Generate notification emails for pushes to a git '\ + 'repository. This hook sends emails describing changes introduced '\ + 'by pushes to a git repository.' form = MailForm db_object = MailTable backref = 'mail_hook' diff --git a/pagure/hooks/pagure_ci.py b/pagure/hooks/pagure_ci.py index 12c2576..3998477 100644 --- a/pagure/hooks/pagure_ci.py +++ b/pagure/hooks/pagure_ci.py @@ -60,7 +60,8 @@ class PagureCITable(BASE): tmpl = """ -{% if repo | hasattr('ci_hook') and repo.ci_hook and repo.ci_hook[0].pagure_ci_token %} +{% if repo | hasattr('ci_hook') and repo.ci_hook and + repo.ci_hook[0].pagure_ci_token %} The token to be used by jenkins to trigger the build is:
diff --git a/pagure/hooks/pagure_request_hook.py b/pagure/hooks/pagure_request_hook.py
index 7182531..b65f060 100644
--- a/pagure/hooks/pagure_request_hook.py
+++ b/pagure/hooks/pagure_request_hook.py
@@ -64,7 +64,8 @@ class PagureRequestHook(BaseHook):
 
     name = 'Pagure requests'
     description = 'Pagure specific hook to update pull-requests stored '\
-        'in the database based on the information pushed in the requests git repository.'
+        'in the database based on the information pushed in the requests '\
+        'git repository.'
     form = PagureRequestsForm
     db_object = PagureRequestsTable
     backref = 'pagure_hook_requests'