@@ -146,15 +146,15 @@ def list_commands(self, ctx):
146
146
return self .commands .keys ()
147
147
148
148
149
- @click .group (cls = ReleaseHelperGroup )
149
+ @click .group (cls = ReleaseHelperGroup ) # type:ignore[arg-type]
150
150
@click .option ("--force" , default = False , help = "Force a command to run even when skipped by config" )
151
151
def main (force ):
152
152
"""Jupyter Releaser scripts"""
153
153
pass
154
154
155
155
156
156
# Extracted common options
157
- version_spec_options = [
157
+ version_spec_options : t . Any = [
158
158
click .option (
159
159
"--version-spec" ,
160
160
envvar = "RH_VERSION_SPEC" ,
@@ -164,7 +164,7 @@ def main(force):
164
164
]
165
165
166
166
167
- post_version_spec_options = [
167
+ post_version_spec_options : t . Any = [
168
168
click .option (
169
169
"--post-version-spec" ,
170
170
envvar = "RH_POST_VERSION_SPEC" ,
@@ -179,24 +179,26 @@ def main(force):
179
179
),
180
180
]
181
181
182
- version_cmd_options = [
182
+ version_cmd_options : t . Any = [
183
183
click .option ("--version-cmd" , envvar = "RH_VERSION_COMMAND" , help = "The version command" )
184
184
]
185
185
186
186
187
- branch_options = [
187
+ branch_options : t . Any = [
188
188
click .option ("--ref" , envvar = "RH_REF" , help = "The source reference" ),
189
189
click .option ("--branch" , envvar = "RH_BRANCH" , help = "The target branch" ),
190
190
click .option ("--repo" , envvar = "RH_REPOSITORY" , help = "The git repo" ),
191
191
]
192
192
193
- auth_options = [
193
+ auth_options : t . Any = [
194
194
click .option ("--auth" , envvar = "GITHUB_ACCESS_TOKEN" , help = "The GitHub auth token" ),
195
195
]
196
196
197
- username_options = [click .option ("--username" , envvar = "GITHUB_ACTOR" , help = "The git username" )]
197
+ username_options : t .Any = [
198
+ click .option ("--username" , envvar = "GITHUB_ACTOR" , help = "The git username" )
199
+ ]
198
200
199
- dist_dir_options = [
201
+ dist_dir_options : t . Any = [
200
202
click .option (
201
203
"--dist-dir" ,
202
204
envvar = "RH_DIST_DIR" ,
@@ -205,7 +207,7 @@ def main(force):
205
207
)
206
208
]
207
209
208
- python_packages_options = [
210
+ python_packages_options : t . Any = [
209
211
click .option (
210
212
"--python-packages" ,
211
213
envvar = "RH_PYTHON_PACKAGES" ,
@@ -215,7 +217,7 @@ def main(force):
215
217
)
216
218
]
217
219
218
- check_imports_options = [
220
+ check_imports_options : t . Any = [
219
221
click .option (
220
222
"--check-imports" ,
221
223
envvar = "RH_CHECK_IMPORTS" ,
@@ -225,20 +227,20 @@ def main(force):
225
227
)
226
228
]
227
229
228
- dry_run_options = [
230
+ dry_run_options : t . Any = [
229
231
click .option ("--dry-run" , is_flag = True , envvar = "RH_DRY_RUN" , help = "Run as a dry run" )
230
232
]
231
233
232
234
233
- git_url_options = [click .option ("--git-url" , help = "A custom url for the git repository" )]
235
+ git_url_options : t . Any = [click .option ("--git-url" , help = "A custom url for the git repository" )]
234
236
235
237
236
- release_url_options = [
238
+ release_url_options : t . Any = [
237
239
click .option ("--release-url" , envvar = "RH_RELEASE_URL" , help = "A draft GitHub release url" )
238
240
]
239
241
240
242
241
- changelog_path_options = [
243
+ changelog_path_options : t . Any = [
242
244
click .option (
243
245
"--changelog-path" ,
244
246
envvar = "RH_CHANGELOG" ,
@@ -247,7 +249,7 @@ def main(force):
247
249
),
248
250
]
249
251
250
- since_options = [
252
+ since_options : t . Any = [
251
253
click .option (
252
254
"--since" ,
253
255
envvar = "RH_SINCE" ,
@@ -262,7 +264,7 @@ def main(force):
262
264
),
263
265
]
264
266
265
- changelog_options = (
267
+ changelog_options : t . Any = (
266
268
branch_options
267
269
+ auth_options
268
270
+ changelog_path_options
@@ -277,7 +279,7 @@ def main(force):
277
279
]
278
280
)
279
281
280
- npm_install_options = [
282
+ npm_install_options : t . Any = [
281
283
click .option (
282
284
"--npm-install-options" ,
283
285
envvar = "RH_NPM_INSTALL_OPTIONS" ,
@@ -286,7 +288,7 @@ def main(force):
286
288
)
287
289
]
288
290
289
- pydist_check_options = [
291
+ pydist_check_options : t . Any = [
290
292
click .option (
291
293
"--pydist-check-cmd" ,
292
294
envvar = "RH_PYDIST_CHECK_CMD" ,
0 commit comments