From c58f8957ac2969922d15310d4debf593c3cfa34f Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 1 Jul 2024 10:56:30 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- jupyterhub_config.py | 8 ++------ src/ProfileOptions.jsx | 29 ++++++++++++++++------------- 2 files changed, 18 insertions(+), 19 deletions(-) diff --git a/jupyterhub_config.py b/jupyterhub_config.py index 39ff2d8..b7a605f 100644 --- a/jupyterhub_config.py +++ b/jupyterhub_config.py @@ -140,9 +140,7 @@ "profile_options": { "image": { "display_name": "Image", - "dynamic_image_building": { - "enabled": True - }, + "dynamic_image_building": {"enabled": True}, "unlisted_choice": { "enabled": True, "display_name": "Custom image", @@ -234,9 +232,7 @@ "image": { "choices": {}, "display_name": "Image", - "dynamic_image_building": { - "enabled": True - }, + "dynamic_image_building": {"enabled": True}, "unlisted_choice": { "display_name": "Custom image", "enabled": True, diff --git a/src/ProfileOptions.jsx b/src/ProfileOptions.jsx index d0bca00..d2ff3d0 100644 --- a/src/ProfileOptions.jsx +++ b/src/ProfileOptions.jsx @@ -3,25 +3,28 @@ import { ImageBuilder } from "./ImageBuilder"; function hasDynamicImageBuilding(key, option) { console.log("dynamic image building", key, option); - return key === 'image' && option.dynamic_image_building?.enabled && option.unlisted_choice?.enabled; + return ( + key === "image" && + option.dynamic_image_building?.enabled && + option.unlisted_choice?.enabled + ); } export function ProfileOptions({ config, profile }) { return (