From 479ce72fe01b5a5a0557f4850b7429ddf08fbbe0 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Tue, 14 Jan 2025 14:20:17 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- binderhub/app.py | 1 - binderhub/builder.py | 10 +++++++--- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/binderhub/app.py b/binderhub/app.py index 32caf8261..b5134a2d5 100644 --- a/binderhub/app.py +++ b/binderhub/app.py @@ -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=""" diff --git a/binderhub/builder.py b/binderhub/builder.py index 3914a0f18..1d0903a93 100644 --- a/binderhub/builder.py +++ b/binderhub/builder.py @@ -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( @@ -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: