From 60768574aacf8b1863ae2c03dfbfad3fa2632e1d Mon Sep 17 00:00:00 2001 From: Amethyst Reese Date: Fri, 22 Nov 2024 09:18:36 -0800 Subject: [PATCH] migrate xplat/ to ruff Summary: Formats the covered files with pyfmt. ruff_dog Reviewed By: d16r Differential Revision: D65988249 fbshipit-source-id: 0f7744962428982d0343cc76a7520b4f54e9676a --- tools/node-hermes/nodelib/AddWrappers.py | 1 - tools/synth/trace_normalize.py | 1 + utils/summarize_sizes.py | 2 +- 3 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/node-hermes/nodelib/AddWrappers.py b/tools/node-hermes/nodelib/AddWrappers.py index 67016e9ff18..f559fde432a 100644 --- a/tools/node-hermes/nodelib/AddWrappers.py +++ b/tools/node-hermes/nodelib/AddWrappers.py @@ -33,7 +33,6 @@ def main(): args = parser.parse_args() with io.open(args.files[0], "w", encoding="utf-8") as o: - o.write("({") for arg in args.files[1:]: arg = path.abspath(arg) diff --git a/tools/synth/trace_normalize.py b/tools/synth/trace_normalize.py index 534f5798f22..3daacd7daf8 100644 --- a/tools/synth/trace_normalize.py +++ b/tools/synth/trace_normalize.py @@ -19,6 +19,7 @@ However, it is typically better to submit the original, to keep the times in case they're ever needed. """ + import argparse import json import struct diff --git a/utils/summarize_sizes.py b/utils/summarize_sizes.py index 857e284a045..6c7a096d807 100755 --- a/utils/summarize_sizes.py +++ b/utils/summarize_sizes.py @@ -6,7 +6,7 @@ # -*- coding: utf-8 -*- -""" Executable section size analysis. +"""Executable section size analysis. This script analyzes the size of an executable by section. The 'measure' command may be given to print size metrics about a single executable,