From 1fbb5e0ff1f533a4128a6a43346aa118bcaab696 Mon Sep 17 00:00:00 2001 From: Yu Watanabe Date: Fri, 20 Feb 2026 02:11:31 +0900 Subject: [PATCH] meson-extract-unit-files: apply "ruff format" --- tools/meson-extract-unit-files.py | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/tools/meson-extract-unit-files.py b/tools/meson-extract-unit-files.py index f2b4fa30e7..df4c559346 100755 --- a/tools/meson-extract-unit-files.py +++ b/tools/meson-extract-unit-files.py @@ -6,15 +6,20 @@ import re import subprocess import sys + def main(): build_dir = sys.argv[1] - out = subprocess.run(["meson", "introspect", "--installed", build_dir], - stdout=subprocess.PIPE, check=True) + out = subprocess.run( + ['meson', 'introspect', '--installed', build_dir], + stdout=subprocess.PIPE, + check=True, + ) files = json.loads(out.stdout) for file in sorted(files.values()): - if re.search("^/usr/lib/systemd/(system|user)/", file) and not file.endswith(".conf"): + if re.search('^/usr/lib/systemd/(system|user)/', file) and not file.endswith('.conf'): print(file) -if __name__ == "__main__": + +if __name__ == '__main__': main()