From: Yu Watanabe Date: Sun, 17 May 2026 17:47:09 +0000 (+0900) Subject: merge-bpf-compdb: apply "ruff format" X-Git-Tag: v261-rc1~126^2~6 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=94f807be03840bf30167395e824cc2aebf08c08a;p=thirdparty%2Fsystemd.git merge-bpf-compdb: apply "ruff format" --- diff --git a/src/bpf/merge-bpf-compdb.py b/src/bpf/merge-bpf-compdb.py index c93e685afd9..ae8e7cdf54b 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)