Skip to content

Commit 4a17818

Browse files
committed
format with ruff
1 parent 7859afa commit 4a17818

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

noxfile.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Nox sessions."""
2+
23
import glob
34
import os
45
import shlex

src/caikit_nlp_client/utils.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,10 @@ def get_server_certificate(host: str, port: int) -> str:
1919

2020
context = ssl.SSLContext()
2121

22-
with socket.create_connection((host, port)) as sock, context.wrap_socket(
23-
sock, server_hostname=host
24-
) as ssock:
22+
with (
23+
socket.create_connection((host, port)) as sock,
24+
context.wrap_socket(sock, server_hostname=host) as ssock,
25+
):
2526
cert_der = ssock.getpeercert(binary_form=True)
2627

2728
assert cert_der

0 commit comments

Comments
 (0)