Skip to content

Commit bc1659d

Browse files
author
Graham Weldon
committed
Black formatting
Signed-off-by: Graham Weldon <graham.weldon@rakuten.com>
1 parent baf7412 commit bc1659d

6 files changed

Lines changed: 12 additions & 25 deletions

File tree

atlassian/bitbucket/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1056,7 +1056,7 @@ def repo_users_with_administrator_permissions(self, project_key, repo_key):
10561056
repo_administrators = []
10571057
for user in self.repo_users(project_key, repo_key):
10581058
if user["permission"] == "REPO_ADMIN":
1059-
repo_administrators.append(user['user'])
1059+
repo_administrators.append(user["user"])
10601060
for group in self.repo_groups_with_administrator_permissions(project_key, repo_key):
10611061
for user in self.group_members(group):
10621062
repo_administrators.append(user)

atlassian/models/jira/issues.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55

66
from atlassian.models.jira.fields import IssueFields, IssueType
77

8-
98
_ISSUE_TYPE_REGISTRY: dict[str, type[JiraIssue]] = {}
109

1110

atlassian/utils.py

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -213,14 +213,12 @@ def block_code_macro_confluence(code, lang=None):
213213
"""
214214
if not lang:
215215
lang = ""
216-
return (
217-
"""\
216+
return ("""\
218217
<ac:structured-macro ac:name="code" ac:schema-version="1">
219218
<ac:parameter ac:name="language">{lang}</ac:parameter>
220219
<ac:plain-text-body><![CDATA[{code}]]></ac:plain-text-body>
221220
</ac:structured-macro>
222-
"""
223-
).format(lang=lang, code=code)
221+
""").format(lang=lang, code=code)
224222

225223

226224
def html_code__macro_confluence(text):
@@ -229,13 +227,11 @@ def html_code__macro_confluence(text):
229227
:param text:
230228
:return:
231229
"""
232-
return (
233-
"""\
230+
return ("""\
234231
<ac:structured-macro ac:name="html" ac:schema-version="1">
235232
<ac:plain-text-body><![CDATA[{text}]]></ac:plain-text-body>
236233
</ac:structured-macro>
237-
"""
238-
).format(text=text)
234+
""").format(text=text)
239235

240236

241237
def noformat_code_macro_confluence(text, nopanel=None):
@@ -247,14 +243,12 @@ def noformat_code_macro_confluence(text, nopanel=None):
247243
"""
248244
if not nopanel:
249245
nopanel = False
250-
return (
251-
"""\
246+
return ("""\
252247
<ac:structured-macro ac:name="noformat" ac:schema-version="1">
253248
<ac:parameter ac:name="nopanel">{nopanel}</ac:parameter>
254249
<ac:plain-text-body><![CDATA[{text}]]></ac:plain-text-body>
255250
</ac:structured-macro>
256-
"""
257-
).format(nopanel=nopanel, text=text)
251+
""").format(nopanel=nopanel, text=text)
258252

259253

260254
def symbol_normalizer(text):

examples/jira/jira_admins_confluence_page.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,13 @@
1212

1313
confluence = Confluence(url="http://localhost:8090", username="admin", password="admin")
1414

15-
html = [
16-
"""<table>
15+
html = ["""<table>
1716
<tr>
1817
<th>Project Key</th>
1918
<th>Project Name</th>
2019
<th>Leader</th>
2120
<th>Email</th>
22-
</tr>"""
23-
]
21+
</tr>"""]
2422

2523
for data in jira.project_leaders():
2624
log.info("{project_key} leader is {lead_name} <{lead_email}>".format(**data))

examples/jira/jira_project_administrators.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,7 @@
1717
<td>{project_name}</td>
1818
<td>{lead_name}</td>
1919
<td><a href="mailto:{lead_email}">{lead_email}</a></td>
20-
</tr>""".format(
21-
**data
22-
)
20+
</tr>""".format(**data)
2321

2422
html += "</table>"
2523

examples/jira/jira_project_leaders.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,15 @@
77
jira = Jira(url="http://localhost:8080", username="admin", password="admin")
88

99
EMAIL_SUBJECT = quote("Jira access to project {project_key}")
10-
EMAIL_BODY = quote(
11-
"""I am asking for access to the {project_key} project in Jira.
10+
EMAIL_BODY = quote("""I am asking for access to the {project_key} project in Jira.
1211
1312
To give me the appropriate permissions, assign me to a role on the page:
1413
http://localhost:8080/plugins/servlet/project-config/{project_key}/roles
1514
1615
Role:
1716
Users - read-only access + commenting
1817
Developers - work on tasks, editing, etc.
19-
Admin - Change of configuration and the possibility of starting sprints"""
20-
)
18+
Admin - Change of configuration and the possibility of starting sprints""")
2119

2220
MAILTO = '<a href="mailto:{lead_email}?subject={email_subject}&body={email_body}">{lead_name}</a>'
2321

0 commit comments

Comments
 (0)