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 Jul 5, 2024
1 parent 1c38f12 commit 5e8bc79
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions jupyter_client/kernelspec.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 5e8bc79

Please sign in to comment.