From 94f807be03840bf30167395e824cc2aebf08c08a Mon Sep 17 00:00:00 2001 From: Yu Watanabe Date: Mon, 18 May 2026 02:47:09 +0900 Subject: [PATCH] merge-bpf-compdb: apply "ruff format" --- src/bpf/merge-bpf-compdb.py | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/src/bpf/merge-bpf-compdb.py b/src/bpf/merge-bpf-compdb.py index c93e685afd..ae8e7cdf54 100755 --- a/src/bpf/merge-bpf-compdb.py +++ b/src/bpf/merge-bpf-compdb.py @@ -11,7 +11,7 @@ def main() -> int: sep = sys.argv.index('--') sources = sys.argv[1:sep] - command = sys.argv[sep + 1:] + command = sys.argv[sep + 1 :] db_path = os.path.join(build_root, 'compile_commands.json') try: @@ -24,11 +24,13 @@ def main() -> int: db = [entry for entry in db if entry['file'] not in sources_set] for source in sources: - db.append({ - 'directory': build_root, - 'file': source, - 'arguments': [source if a == '@INPUT@' else a for a in command], - }) + db.append( + { + 'directory': build_root, + 'file': source, + 'arguments': [source if a == '@INPUT@' else a for a in command], + } + ) with open(db_path, 'w') as f: json.dump(db, f, indent=2)