Use black to format the file

This commit is contained in:
Tom Willemse 2024-03-13 22:16:50 -07:00
parent b3be74ad3a
commit 4fa36f7bde

View file

@ -6,12 +6,12 @@ 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)
@ -21,8 +21,8 @@ if not match(r"^0+$", commit_before_sha):
process = run(cmd, shell=True, capture_output=True)
process_output = process.stdout.decode()
print(process_output)
for filename in process_output.strip().split('\n'):
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)}")