Skip to content

Commit 800619d

Browse files
committed
style(scripts): apply ruff format from latest
The previous fix landed on a slightly older `ruff` version that preferred a multi-line `base_path.write_text(\n ...\n)` form; CI runs the latest `ruff format --check` which collapses the line. Reformatted to match upstream.
1 parent fdfb295 commit 800619d

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

scripts/generate_torch_ops.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -847,9 +847,7 @@ def _emit(name: str, ops: list[Op], *, emit_base: bool) -> None:
847847

848848
if emit_base:
849849
_GENERATED_BASE_DIR.mkdir(parents=True, exist_ok=True)
850-
base_path.write_text(
851-
_clang_format(_generate_base_header(name, ops), base_path)
852-
)
850+
base_path.write_text(_clang_format(_generate_base_header(name, ops), base_path))
853851

854852
torch_dir.mkdir(parents=True, exist_ok=True)
855853

0 commit comments

Comments
 (0)