File tree Expand file tree Collapse file tree 1 file changed +14
-4
lines changed Expand file tree Collapse file tree 1 file changed +14
-4
lines changed Original file line number Diff line number Diff line change @@ -16,7 +16,9 @@ class GitHubApi(TypedDict):
16
16
exception : NotRequired [Exception | None ]
17
17
18
18
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 :
20
22
for n , api in enumerate (apis ):
21
23
ctx .should_call_api (** api , data = data [n ])
22
24
@@ -93,9 +95,15 @@ def generate_issue_body_remove(
93
95
):
94
96
match type :
95
97
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
+ )
97
103
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
+ )
99
107
100
108
101
109
def check_json_data (file : Path , data : Any ) -> None :
@@ -160,7 +168,9 @@ def generate(self):
160
168
config = self .config ,
161
169
)
162
170
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
+ )
164
174
return body
165
175
166
176
You can’t perform that action at this time.
0 commit comments