From 4fa36f7bde47093f92d659e222828319f5af93a1 Mon Sep 17 00:00:00 2001 From: Tom Willemse Date: Wed, 13 Mar 2024 22:16:50 -0700 Subject: [PATCH] Use black to format the file --- build/freeloadio.run | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/build/freeloadio.run b/build/freeloadio.run index 7f2979e..a26b887 100755 --- a/build/freeloadio.run +++ b/build/freeloadio.run @@ -6,23 +6,23 @@ from re import match from shlex import quote from subprocess import run -commit_before_sha = getenv('CI_COMMIT_BEFORE_SHA') -commit_sha = getenv('CI_COMMIT_SHA') -commit_ref_name = getenv('CI_COMMIT_REF_NAME') +commit_before_sha = getenv("CI_COMMIT_BEFORE_SHA") +commit_sha = getenv("CI_COMMIT_SHA") +commit_ref_name = getenv("CI_COMMIT_REF_NAME") directories = set() -cmd = 'git clone https://code.ryuslash.org/ryuslash/git-lfs-test.git .' +cmd = "git clone https://code.ryuslash.org/ryuslash/git-lfs-test.git ." print(cmd) run(cmd, shell=True) if not match(r"^0+$", commit_before_sha): - cmd = f"git diff --name-only {quote(commit_before_sha)} {quote(commit_sha)}" - print(cmd) - process = run(cmd, shell=True, capture_output=True) - process_output = process.stdout.decode() - print(process_output) - for filename in process_output.strip().split('\n'): - directories.add(dirname(filename)) + cmd = f"git diff --name-only {quote(commit_before_sha)} {quote(commit_sha)}" + print(cmd) + process = run(cmd, shell=True, capture_output=True) + process_output = process.stdout.decode() + print(process_output) + for filename in process_output.strip().split("\n"): + directories.add(dirname(filename)) -unix_directory_list = str.join(':', directories) -print(f'python tasks.py probe --directories={quote(unix_directory_list)}') +unix_directory_list = str.join(":", directories) +print(f"python tasks.py probe --directories={quote(unix_directory_list)}")