From 5e8bc79ec7b2c385b1f0b1a167b516cc90be9586 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Fri, 5 Jul 2024 14:37:40 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- jupyter_client/kernelspec.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/jupyter_client/kernelspec.py b/jupyter_client/kernelspec.py index 7471f718..86324223 100644 --- a/jupyter_client/kernelspec.py +++ b/jupyter_client/kernelspec.py @@ -269,8 +269,10 @@ def check_kernel_is_secure(self, kspec): and "properties" in kspec.metadata["parameters"] and isinstance(kspec.metadata["parameters"]["properties"], dict) ): - counter_secure_kernel_variables = self.get_count_secure_kernel_variables(obj=kspec.metadata["parameters"], counter_secure_kernel_variables=0) - if total_sum_kernel_variables>0: + counter_secure_kernel_variables = self.get_count_secure_kernel_variables( + obj=kspec.metadata["parameters"], counter_secure_kernel_variables=0 + ) + if total_sum_kernel_variables > 0: if counter_secure_kernel_variables == total_sum_kernel_variables: is_secure = True else: @@ -315,7 +317,7 @@ def get_count_secure_kernel_variables(self, obj, counter_secure_kernel_variables else: is_secure = False elif property_value.get("type") == "array": - print('Type of JSON Schema data is array and it is not supported now') + print("Type of JSON Schema data is array and it is not supported now") is_secure = False elif property_value.get("enum"): counter_secure_kernel_variables = counter_secure_kernel_variables + 1