]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
merge-bpf-compdb: apply "ruff format"
authorYu Watanabe <watanabe.yu+github@gmail.com>
Sun, 17 May 2026 17:47:09 +0000 (02:47 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Sun, 17 May 2026 17:47:09 +0000 (02:47 +0900)
src/bpf/merge-bpf-compdb.py

index c93e685afd94212cb3ee9cabd13b72f9e8075988..ae8e7cdf54b434ab1f8a7c28cb17a90c6cddcebf 100755 (executable)
@@ -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)