Skip to content

Commit 3a4e8ec

Browse files
committed
Blacking
Signed-off-by: Cédric Foellmi <cedric@onekiloparsec.dev>
1 parent 4d5fbb3 commit 3a4e8ec

2 files changed

Lines changed: 17 additions & 6 deletions

File tree

arcsecond/cloud/uploader/datafiles/utils.py

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,11 @@ def _display_user_and_key(context: DatasetUploadContext):
2222

2323
def _display_subdomain_info(context: DatasetUploadContext):
2424
"""Displays subdomain upload information."""
25-
msg = f" • Uploading to Observatory Portal '{context.subdomain}'." if context.subdomain else \
26-
" • Uploading to your *personal* account."
25+
msg = (
26+
f" • Uploading to Observatory Portal '{context.subdomain}'."
27+
if context.subdomain
28+
else " • Uploading to your *personal* account."
29+
)
2730
click.echo(msg)
2831

2932

@@ -46,8 +49,11 @@ def _display_data_type_info(context: DatasetUploadContext):
4649

4750
def _display_custom_tags_info(context: DatasetUploadContext):
4851
"""Displays custom tags information."""
49-
msg = f" • Data files will be tagged with the following custom tags: {context.custom_tags}." \
50-
if context.custom_tags else " • Data files will receive no custom tags."
52+
msg = (
53+
f" • Data files will be tagged with the following custom tags: {context.custom_tags}."
54+
if context.custom_tags
55+
else " • Data files will receive no custom tags."
56+
)
5157
click.echo(msg)
5258

5359

@@ -104,7 +110,9 @@ def _display_folder_size(folder_path: pathlib.Path):
104110
click.echo(f" > Estimated upload time: {__get_formatted_size_times(size)}")
105111

106112

107-
def display_upload_datafiles_command_summary(context: DatasetUploadContext, folders: list):
113+
def display_upload_datafiles_command_summary(
114+
context: DatasetUploadContext, folders: list
115+
):
108116
"""Displays a summary of the upload command."""
109117
click.echo("\n --- Upload summary --- ")
110118
_display_user_and_key(context)

arcsecond/hosting/keygen/client.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,10 @@ class KeygenClient(object):
1111
def __init__(self, config, email: str):
1212
self.__config = config
1313
self.__base_url = "https://api.keygen.sh/v1/accounts/arcsecond"
14-
self.__default_headers = {"Content-Type": CONTENT_TYPE, "Accept": CONTENT_TYPE, }
14+
self.__default_headers = {
15+
"Content-Type": CONTENT_TYPE,
16+
"Accept": CONTENT_TYPE,
17+
}
1518
self.__email = email
1619

1720
def __generate_user_token(self):

0 commit comments

Comments
 (0)