style(docs): match the ruff format used by CI
CI / check (push) Successful in 3m22s

This commit is contained in:
BlackAngelTV committed 2026-11-25 21:17:35 +01:00
1 parent 70befe3802
commit 0cce80a6c5
1 file changed
+1 -3
+1 -3
View File
@@ -230,9 +230,7 @@ def commit_role(
url = f'https://github.com/kovidgoyal/kitty/commit/{commit_id}'
options = normalize_options(options)
try:
short_id = subprocess.check_output(
f'git rev-list --max-count=1 --abbrev-commit {commit_id}'.split(), stderr=subprocess.DEVNULL
).decode('utf-8').strip()
short_id = subprocess.check_output(f'git rev-list --max-count=1 --abbrev-commit {commit_id}'.split(), stderr=subprocess.DEVNULL).decode('utf-8').strip()
except Exception:
short_id = commit_id
node = nodes.reference(rawtext, f'commit: {short_id}', refuri=url, **options)