Skip to content

Commit 6b69f65

Browse files
style: auto fix by pre-commit hooks
1 parent 0718058 commit 6b69f65

File tree

1 file changed

+14
-4
lines changed

1 file changed

+14
-4
lines changed

tests/plugins/github/utils.py

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,9 @@ class GitHubApi(TypedDict):
1616
exception: NotRequired[Exception | None]
1717

1818

19-
def should_call_apis(ctx: MatcherContext, apis: list[GitHubApi], data: list[Any]) -> None:
19+
def should_call_apis(
20+
ctx: MatcherContext, apis: list[GitHubApi], data: list[Any]
21+
) -> None:
2022
for n, api in enumerate(apis):
2123
ctx.should_call_api(**api, data=data[n])
2224

@@ -93,9 +95,15 @@ def generate_issue_body_remove(
9395
):
9496
match type:
9597
case "Bot":
96-
return """### 机器人名称\n\n{}\n\n### 机器人项目仓库/主页链接\n\n{}""".format(*key.split(":", 1))
98+
return (
99+
"""### 机器人名称\n\n{}\n\n### 机器人项目仓库/主页链接\n\n{}""".format(
100+
*key.split(":", 1)
101+
)
102+
)
97103
case _:
98-
return """### PyPI 项目名\n\n{}\n\n### import 包名\n\n{}""".format(*key.split(":", 1))
104+
return """### PyPI 项目名\n\n{}\n\n### import 包名\n\n{}""".format(
105+
*key.split(":", 1)
106+
)
99107

100108

101109
def check_json_data(file: Path, data: Any) -> None:
@@ -160,7 +168,9 @@ def generate(self):
160168
config=self.config,
161169
)
162170
if self.test_button is not None:
163-
body = generate_issue_body_plugin_test_button(body, self.test_button)
171+
body = generate_issue_body_plugin_test_button(
172+
body, self.test_button
173+
)
164174
return body
165175

166176

0 commit comments

Comments
 (0)