Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Jan 14, 2025
1 parent cdbc61f commit 479ce72
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
1 change: 0 additions & 1 deletion binderhub/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -479,7 +479,6 @@ def _image_prefix_push_default(self):
def _image_prefix_pull_default(self):
return self.image_prefix


build_memory_request = ByteSpecification(
0,
help="""
Expand Down
10 changes: 7 additions & 3 deletions binderhub/builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -391,7 +391,7 @@ async def get(self, provider_prefix, _unescaped_spec):
# Enforces max 255 characters before image
safe_build_slug = _safe_build_slug(
provider.get_build_slug(),
limit=255 - max(len(image_prefix_push), len(image_prefix_pull))
limit=255 - max(len(image_prefix_push), len(image_prefix_pull)),
)

build_name = _generate_build_name(
Expand All @@ -413,8 +413,12 @@ async def get(self, provider_prefix, _unescaped_spec):
.lower()
)

image_push_without_tag, image_push_tag = _get_image_basename_and_tag(image_name_push)
image_pull_without_tag, image_pull_tag = _get_image_basename_and_tag(image_name_pull)
image_push_without_tag, image_push_tag = _get_image_basename_and_tag(
image_name_push
)
image_pull_without_tag, image_pull_tag = _get_image_basename_and_tag(
image_name_pull
)
if self.settings["use_registry"]:
for _ in range(3):
try:
Expand Down

0 comments on commit 479ce72

Please sign in to comment.