Skip to content

Commit 747037c

Browse files
authored
fix: pants fmt command not working (#2003)
1 parent 5e577d1 commit 747037c

File tree

2 files changed

+4
-9
lines changed

2 files changed

+4
-9
lines changed

pants.toml

+1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ backend_packages = [
77
"pants.backend.shell",
88
"pants.backend.experimental.python",
99
"pants.backend.experimental.python.lint.ruff.check",
10+
"pants.backend.experimental.python.lint.ruff.format",
1011
"pants.backend.experimental.visibility",
1112
"pants.backend.plugin_development",
1213
# "ruff_preview", # a vendored backport of the pants 2.20's lint plugin

src/ai/backend/common/logging.py

+3-9
Original file line numberDiff line numberDiff line change
@@ -202,14 +202,7 @@ def emit(self, record):
202202
class GELFTLSHandler(graypy.GELFTLSHandler):
203203
ssl_ctx: ssl.SSLContext
204204

205-
def __init__(
206-
self,
207-
host,
208-
port=12204,
209-
validate=False,
210-
ca_certs=None,
211-
**kwargs
212-
):
205+
def __init__(self, host, port=12204, validate=False, ca_certs=None, **kwargs):
213206
"""Initialize the GELFTLSHandler
214207
215208
:param host: GELF TLS input host.
@@ -241,7 +234,8 @@ def makeSocket(self, timeout=1):
241234
plain_socket.settimeout(timeout)
242235

243236
wrapped_socket = self.ssl_ctx.wrap_socket(
244-
plain_socket, server_hostname=self.host,
237+
plain_socket,
238+
server_hostname=self.host,
245239
)
246240
wrapped_socket.connect((self.host, self.port))
247241

0 commit comments

Comments
 (0)