gifn-apply: allow Ruff to insist on trailing commas
Change-Id: I0bec61de010daede21bfaab9dd5bec62ed892575
diff --git a/tools/git-if-needed/python/gifn_apply/repo_url.py b/tools/git-if-needed/python/gifn_apply/repo_url.py
index 3204811..af077e7 100644
--- a/tools/git-if-needed/python/gifn_apply/repo_url.py
+++ b/tools/git-if-needed/python/gifn_apply/repo_url.py
@@ -68,7 +68,9 @@
"""Make sure a http(s):// URL has a host, slash-terminate the path."""
if not url.netloc:
return RepoURLError(
- name, value, ValueError("Expected a hostname for 'http' or 'https' URLs")
+ name,
+ value,
+ ValueError("Expected a hostname for 'http' or 'https' URLs"),
)
url = _slash_extend(url)
@@ -95,7 +97,9 @@
validator = _SCHEME_VALIDATORS.get(url.scheme)
if validator is None:
return RepoURLError(
- name, value, ValueError("Expected 'http', 'https', or 'file' as the URL scheme")
+ name,
+ value,
+ ValueError("Expected 'http', 'https', or 'file' as the URL scheme"),
)
return validator(name, value, url)
@@ -106,7 +110,7 @@
environ = dict(os.environ)
res: dict[str, RepoURLResult] = {
- "OPENSTACK": RepoURLOK(defs.RepoURL(uparse.urlparse("https://github.com/openstack")))
+ "OPENSTACK": RepoURLOK(defs.RepoURL(uparse.urlparse("https://github.com/openstack"))),
}
for name, value in environ.items():
base = util.str_removeprefix(name, "REPO_URL_")