Skip to content

Commit 2ba956b

Browse files
committed
ruff formatte
1 parent b054006 commit 2ba956b

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

utils/check_static_imports.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,8 @@ def check_static_imports(update: bool) -> NoReturn:
8080
reordered_content_before_static_checks + IF_TYPE_CHECKING_LINE + "\n".join(static_imports) + "\n"
8181
)
8282
ruff_bin = find_ruff_bin()
83-
os.spawnv(os.P_WAIT, ruff_bin, ["ruff", "format", str(filepath), "--quiet"])
8483
os.spawnv(os.P_WAIT, ruff_bin, ["ruff", str(filepath), "--fix", "--quiet"])
84+
os.spawnv(os.P_WAIT, ruff_bin, ["ruff", "format", str(filepath), "--quiet"])
8585
expected_init_content = filepath.read_text()
8686

8787
# If expected `__init__.py` content is different, test fails. If '--update-init-file'

utils/generate_async_inference_client.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ def format_source_code(code: str) -> str:
7171
filepath.write_text(code)
7272
ruff_bin = find_ruff_bin()
7373
os.spawnv(os.P_WAIT, ruff_bin, ["ruff", str(filepath), "--fix", "--quiet"])
74+
os.spawnv(os.P_WAIT, ruff_bin, ["ruff", "format", str(filepath), "--quiet"])
7475
return filepath.read_text()
7576

7677

0 commit comments

Comments
 (0)