Skip to content

Commit

Permalink
[codemod][pyfmt][ruff] Convert FBCODE to use the Ruff Formatter
Browse files Browse the repository at this point in the history
Summary:
Converts the directory specified to use the Ruff formatter. This is the last big diff to convert all of Fbcode to Ruff.

pomsky_fix_bugs

drop-conflicts
bypass-github-export-checks
allow-large-files

Reviewed By: amyreese

Differential Revision: D66886610

fbshipit-source-id: 8276a7f6164efec189ca0b87e535543ed5bc3615
  • Loading branch information
Thomas Polasek authored and facebook-github-bot committed Dec 6, 2024
1 parent 2ff1d3d commit d970fb6
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions src/hack_forked/test/unit/utils/to_lsp.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
because a closed pipe is an error for the language server. You can terminate
the connection explicitly with control-C.
"""

import fileinput
import sys
import time
Expand Down Expand Up @@ -63,17 +64,13 @@ def to_http(line):
"method": "{method}",
"params": {params}
}}
""".strip().format(
method=method, params=line
)
""".strip().format(method=method, params=line)
content_length = len(json_rpc_payload)
return """
Content-Length: {}\r
\r
{}
""".strip().format(
content_length, json_rpc_payload
)
""".strip().format(content_length, json_rpc_payload)


if __name__ == "__main__":
Expand Down

0 comments on commit d970fb6

Please sign in to comment.