[3.14] GH-139590: Run ruff format on pre-commit for Tools/wasm (GH-139591) (#139744)

Co-authored-by: Savannah Ostrowski <savannahostrowski@gmail.com>
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
This commit is contained in:
Miss Islington (bot) 2025-10-08 17:11:09 +02:00 committed by GitHub
parent a96cde9f80
commit c5ab1b7661
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
9 changed files with 323 additions and 157 deletions

View file

@ -19,6 +19,7 @@
}});
"""
def prepare_wasm(input_file, output_file, function_name):
# Read the compiled WASM as binary and convert to hex
wasm_bytes = Path(input_file).read_bytes()
@ -31,9 +32,7 @@ def prepare_wasm(input_file, output_file, function_name):
)
Path(output_file).write_text(js_content)
print(
f"Successfully compiled {input_file} and generated {output_file}"
)
print(f"Successfully compiled {input_file} and generated {output_file}")
return 0