Skip to content

Commit d62b4df

Browse files
kmadclaude
andcommitted
style: apply ruff formatting to rlm.py and test_local_repl.py
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent ec18cd4 commit d62b4df

2 files changed

Lines changed: 11 additions & 9 deletions

File tree

‎rlm/core/rlm.py‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,9 @@ def _setup_prompt(self, prompt: ContextPayload) -> list[dict[str, Any]]:
269269
)
270270
return message_history
271271

272-
def completion(self, prompt: ContextPayload, root_prompt: str | None = None) -> RLMChatCompletion:
272+
def completion(
273+
self, prompt: ContextPayload, root_prompt: str | None = None
274+
) -> RLMChatCompletion:
273275
"""
274276
Recursive Language Model completion call. This is the main entry point for querying an RLM, and
275277
can replace a regular LM completion call.

‎tests/test_local_repl.py‎

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -301,15 +301,15 @@ def test_dataframe_context(self):
301301
def test_dataframe_preserves_dtypes(self):
302302
"""Test that int/float/str types survive the parquet round-trip."""
303303
pd = pytest.importorskip("pandas")
304-
df = pd.DataFrame({
305-
"int_col": [1, 2, 3],
306-
"float_col": [1.5, 2.5, 3.5],
307-
"str_col": ["a", "b", "c"],
308-
})
304+
df = pd.DataFrame(
305+
{
306+
"int_col": [1, 2, 3],
307+
"float_col": [1.5, 2.5, 3.5],
308+
"str_col": ["a", "b", "c"],
309+
}
310+
)
309311
with LocalREPL(context_payload=df) as repl:
310-
repl.execute_code(
311-
"dtypes = {c: str(context[c].dtype) for c in context.columns}"
312-
)
312+
repl.execute_code("dtypes = {c: str(context[c].dtype) for c in context.columns}")
313313
dtypes = repl.locals["dtypes"]
314314
assert "int" in dtypes["int_col"]
315315
assert "float" in dtypes["float_col"]

0 commit comments

Comments
 (0)