Skip to content

Commit 9bc395b

Browse files
committed
trivial: Re-wrap some strings
Signed-off-by: Stephen Finucane <stephen@that.guru>
1 parent 1b9db6b commit 9bc395b

File tree

5 files changed

+65
-34
lines changed

5 files changed

+65
-34
lines changed

git_pw/bundle.py

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -128,8 +128,10 @@ def show_cmd(fmt: str, bundle_id: str) -> None:
128128
'owners',
129129
metavar='OWNER',
130130
multiple=True,
131-
help='Show only bundles with these owners. Should be an email, '
132-
'name or ID. Private bundles of other users will not be shown.',
131+
help=(
132+
'Show only bundles with these owners. Should be an email, '
133+
'name or ID. Private bundles of other users will not be shown.'
134+
),
133135
)
134136
@utils.pagination_options(sort_fields=_sort_fields, default_sort='name')
135137
@utils.format_options(headers=_list_headers)
@@ -194,8 +196,10 @@ def list_cmd(owners, limit, page, sort, fmt, headers, name):
194196
@click.option(
195197
'--public/--private',
196198
default=False,
197-
help='Allow other users to view this bundle. If private, only '
198-
'you will be able to see this bundle.',
199+
help=(
200+
'Allow other users to view this bundle. If private, only '
201+
'you will be able to see this bundle.'
202+
),
199203
)
200204
@click.argument('name')
201205
@click.argument('patch_ids', type=click.INT, nargs=-1, required=True)
@@ -246,8 +250,10 @@ def create_cmd(
246250
@click.option(
247251
'--public/--private',
248252
default=None,
249-
help='Allow other users to view this bundle. If private, only '
250-
'you will be able to see this bundle.',
253+
help=(
254+
'Allow other users to view this bundle. If private, only '
255+
'you will be able to see this bundle.'
256+
),
251257
)
252258
@click.argument('bundle_id')
253259
@api.validate_minimum_version(

git_pw/patch.py

Lines changed: 26 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,10 @@
5656
@click.option(
5757
'--deps/--no-deps',
5858
default=True,
59-
help='When applying the patch, include dependencies if '
60-
'available. Defaults to using the most recent series.',
59+
help=(
60+
'When applying the patch, include dependencies if '
61+
'available. Defaults to using the most recent series.'
62+
),
6163
)
6264
@click.argument('args', nargs=-1, type=click.UNPROCESSED)
6365
def apply_cmd(patch_id, series, deps, args):
@@ -210,15 +212,19 @@ def _get_states():
210212
'--state',
211213
metavar='STATE',
212214
type=click.Choice(_get_states()),
213-
help="Set the patch state. Should be a slugified representation "
214-
"of a state. The available states are instance dependant and "
215-
"can be configured using 'git config pw.states'.",
215+
help=(
216+
"Set the patch state. Should be a slugified representation "
217+
"of a state. The available states are instance dependant and "
218+
"can be configured using 'git config pw.states'."
219+
),
216220
)
217221
@click.option(
218222
'--delegate',
219223
metavar='DELEGATE',
220-
help='Set the patch delegate. Should be unique user identifier: '
221-
'either a username or a user\'s email address.',
224+
help=(
225+
"Set the patch delegate. Should be unique user identifier: "
226+
"either a username or a user's email address."
227+
),
222228
)
223229
@click.option(
224230
'--archived',
@@ -277,25 +283,31 @@ def update_cmd(patch_ids, commit_ref, state, delegate, archived, fmt):
277283
metavar='STATE',
278284
multiple=True,
279285
default=['under-review', 'new'],
280-
help='Show only patches matching these states. Should be '
281-
'slugified representations of states. The available states '
282-
'are instance dependant.',
286+
help=(
287+
'Show only patches matching these states. Should be '
288+
'slugified representations of states. The available states '
289+
'are instance dependant.'
290+
),
283291
)
284292
@click.option(
285293
'--submitter',
286294
'submitters',
287295
metavar='SUBMITTER',
288296
multiple=True,
289-
help='Show only patches by these submitters. Should be an '
290-
'email, name or ID.',
297+
help=(
298+
'Show only patches by these submitters. Should be an '
299+
'email, name or ID.'
300+
),
291301
)
292302
@click.option(
293303
'--delegate',
294304
'delegates',
295305
metavar='DELEGATE',
296306
multiple=True,
297-
help='Show only patches with these delegates. Should be an '
298-
'email or username.',
307+
help=(
308+
'Show only patches with these delegates. Should be an '
309+
'email or username.'
310+
),
299311
)
300312
@click.option(
301313
'--hash',

git_pw/series.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,8 +156,10 @@ def _format_submission(submission):
156156
'submitters',
157157
metavar='SUBMITTER',
158158
multiple=True,
159-
help='Show only series by these submitters. Should be an '
160-
'email, name or ID.',
159+
help=(
160+
'Show only series by these submitters. Should be an '
161+
'email, name or ID.'
162+
),
161163
)
162164
@utils.pagination_options(sort_fields=_sort_fields, default_sort='-date')
163165
@utils.format_options(headers=_list_headers)

git_pw/shell.py

Lines changed: 19 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -24,36 +24,45 @@
2424
'--token',
2525
metavar='TOKEN',
2626
envvar='PW_TOKEN',
27-
help="Authentication token. Defaults to the value of "
28-
"'git config pw.token'.",
27+
help=(
28+
"Authentication token. "
29+
"Defaults to the value of 'git config pw.token'."
30+
),
2931
)
3032
@click.option(
3133
'--username',
3234
metavar='USERNAME',
3335
envvar='PW_USERNAME',
34-
help="Authentication username. Defaults to the value of "
35-
"'git config pw.username'.",
36+
help=(
37+
"Authentication username. "
38+
"Defaults to the value of 'git config pw.username'."
39+
),
3640
)
3741
@click.option(
3842
'--password',
3943
metavar='PASSWORD',
4044
envvar='PW_PASSWORD',
41-
help="Authentication password. Defaults to the value of "
42-
"'git config pw.password'.",
45+
help=(
46+
"Authentication password. "
47+
"Defaults to the value of 'git config pw.password'."
48+
),
4349
)
4450
@click.option(
4551
'--server',
4652
metavar='SERVER',
4753
envvar='PW_SERVER',
48-
help="Patchwork server address/hostname. Defaults to the value "
49-
"of 'git config pw.server'.",
54+
help=(
55+
"Patchwork server address/hostname. "
56+
"Defaults to the value of 'git config pw.server'."
57+
),
5058
)
5159
@click.option(
5260
'--project',
5361
metavar='PROJECT',
5462
envvar='PW_PROJECT',
55-
help="Patchwork project. Defaults the value of "
56-
"'git config pw.project'.",
63+
help=(
64+
"Patchwork project. Defaults to the value of 'git config pw.project'."
65+
),
5766
)
5867
@click.version_option()
5968
def cli(debug, token, username, password, server, project):

git_pw/utils.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -189,8 +189,10 @@ def _pagination_options(f):
189189
'--page',
190190
metavar='PAGE',
191191
type=click.INT,
192-
help='Page to retrieve items from. This is '
193-
'influenced by the size of LIMIT.',
192+
help=(
193+
'Page to retrieve items from. This is '
194+
'influenced by the size of LIMIT.'
195+
),
194196
)(f)
195197
f = click.option(
196198
'--sort',

0 commit comments

Comments
 (0)