lint: Fix E127 pep8 violations.
Fix pep8: E127 continuation line over-indented for visual indent style issue.
This commit is contained in:
		
							parent
							
								
									bc9bb4287d
								
							
						
					
					
						commit
						fad4fbc733
					
				
					 5 changed files with 28 additions and 28 deletions
				
			
		| 
						 | 
				
			
			@ -75,11 +75,11 @@ while len(json_implementations):
 | 
			
		|||
 | 
			
		||||
def make_api_call(path):
 | 
			
		||||
    response = requests.get("https://api3.codebasehq.com/%s" % (path,),
 | 
			
		||||
                             auth=(config.CODEBASE_API_USERNAME, config.CODEBASE_API_KEY),
 | 
			
		||||
                             params={'raw': True},
 | 
			
		||||
                             headers = {"User-Agent": user_agent,
 | 
			
		||||
                                        "Content-Type": "application/json",
 | 
			
		||||
                                        "Accept": "application/json"})
 | 
			
		||||
                            auth=(config.CODEBASE_API_USERNAME, config.CODEBASE_API_KEY),
 | 
			
		||||
                            params={'raw': True},
 | 
			
		||||
                            headers = {"User-Agent": user_agent,
 | 
			
		||||
                                       "Content-Type": "application/json",
 | 
			
		||||
                                       "Accept": "application/json"})
 | 
			
		||||
    if response.status_code == 200:
 | 
			
		||||
        return json.loads(response.text)
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -136,8 +136,8 @@ def handle_event(event):
 | 
			
		|||
        else:
 | 
			
		||||
            if new_ref:
 | 
			
		||||
                branch = "new branch %s" % (branch,)
 | 
			
		||||
            content = "%s pushed %s commit(s) to %s in project %s:\n\n" % \
 | 
			
		||||
                        (actor_name, num_commits, branch, project)
 | 
			
		||||
            content = ("%s pushed %s commit(s) to %s in project %s:\n\n" %
 | 
			
		||||
                       (actor_name, num_commits, branch, project))
 | 
			
		||||
            for commit in raw_props.get('commits'):
 | 
			
		||||
                ref = commit.get('ref')
 | 
			
		||||
                url = make_url("projects/%s/repositories/%s/commit/%s" % (project_link, repo_link, ref))
 | 
			
		||||
| 
						 | 
				
			
			@ -155,8 +155,8 @@ def handle_event(event):
 | 
			
		|||
        if assignee is None:
 | 
			
		||||
            assignee = "no one"
 | 
			
		||||
        subject = "#%s: %s" % (num, name)
 | 
			
		||||
        content = """%s created a new ticket [#%s](%s) priority **%s** assigned to %s:\n\n~~~ quote\n %s""" % \
 | 
			
		||||
                    (actor_name, num, url, priority, assignee, name)
 | 
			
		||||
        content = ("""%s created a new ticket [#%s](%s) priority **%s** assigned to %s:\n\n~~~ quote\n %s""" %
 | 
			
		||||
                   (actor_name, num, url, priority, assignee, name))
 | 
			
		||||
    elif event_type == 'ticketing_note':
 | 
			
		||||
        stream = config.ZULIP_TICKETS_STREAM_NAME
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -229,8 +229,8 @@ def handle_event(event):
 | 
			
		|||
 | 
			
		||||
        subject = "Deployment to %s" % (environment,)
 | 
			
		||||
 | 
			
		||||
        content = "%s deployed [%s](%s) [through](%s) [%s](%s) to the **%s** environment." % \
 | 
			
		||||
                    (actor_name, start_ref, start_ref_url, between_url, end_ref, end_ref_url, environment)
 | 
			
		||||
        content = ("%s deployed [%s](%s) [through](%s) [%s](%s) to the **%s** environment." %
 | 
			
		||||
                   (actor_name, start_ref, start_ref_url, between_url, end_ref, end_ref_url, environment))
 | 
			
		||||
        if servers is not None:
 | 
			
		||||
            content += "\n\nServers deployed to: %s" % (", ".join(["`%s`" % (server,) for server in servers]))
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue