gifn-apply: allow Ruff to insist on trailing commas
Change-Id: I0bec61de010daede21bfaab9dd5bec62ed892575
diff --git a/tools/git-if-needed/python/gifn_apply/git.py b/tools/git-if-needed/python/gifn_apply/git.py
index 931e930..f33c1a1 100644
--- a/tools/git-if-needed/python/gifn_apply/git.py
+++ b/tools/git-if-needed/python/gifn_apply/git.py
@@ -31,7 +31,7 @@
)
repo_url: Final = loc.url._replace(
- path=loc.url.path + ("" if loc.url.path.endswith("/") else "/") + repo.repo
+ path=loc.url.path + ("" if loc.url.path.endswith("/") else "/") + repo.repo,
)
repo_dir: Final = tempd / repo.origin / repo.repo
if repo_dir.exists() or repo_dir.is_symlink():
@@ -50,7 +50,7 @@
)
except (OSError, subprocess.CalledProcessError) as err:
raise GitError(
- f"Could not run `git clone {repo_url.geturl()} {repo.repo}` in {tempd}: {err}"
+ f"Could not run `git clone {repo_url.geturl()} {repo.repo}` in {tempd}: {err}",
) from err
if not repo_dir.is_dir():
raise GitError(f"`git clone` did not create {repo_dir}")
@@ -76,7 +76,7 @@
raise GitError(f"Could not run `git log` for change IDs in {repo_dir}: {err}") from err
except ValueError as err:
raise GitError(
- f"Could not decode the output of `git log` in {repo_dir} into UTF-8 change IDs: {err}"
+ f"Could not decode the output of `git log` in {repo_dir} into UTF-8 change IDs: {err}",
) from err
def parse_line(line: str) -> str: