chore: use ruff to lint and auto-format

This commit is contained in:
Henry Li
2026-01-14 09:08:20 +08:00
parent 7dc063ba25
commit cb611f9270
12 changed files with 85 additions and 35 deletions

View File

@@ -29,7 +29,7 @@ class LocalSandbox(Sandbox):
return list_dir(path, max_depth)
def read_file(self, path: str) -> str:
with open(path, "r") as f:
with open(path) as f:
return f.read()
def write_file(self, path: str, content: str, append: bool = False) -> None: