1
0

[loop-cycle] fix: remove unused imports and fix formatting (lint) (#1209)

This commit is contained in:
2026-03-23 22:30:03 +00:00
parent 46edac3e76
commit 25157a71a8
6 changed files with 25 additions and 42 deletions

View File

@@ -72,7 +72,9 @@ class GitHand:
return False
async def _exec_subprocess(
self, args: str, timeout: int,
self,
args: str,
timeout: int,
) -> tuple[bytes, bytes, int]:
"""Run git as a subprocess, return (stdout, stderr, returncode).
@@ -87,7 +89,8 @@ class GitHand:
)
try:
stdout, stderr = await asyncio.wait_for(
proc.communicate(), timeout=timeout,
proc.communicate(),
timeout=timeout,
)
except TimeoutError:
proc.kill()
@@ -151,7 +154,8 @@ class GitHand:
try:
stdout_bytes, stderr_bytes, returncode = await self._exec_subprocess(
args, effective_timeout,
args,
effective_timeout,
)
except TimeoutError:
latency = (time.time() - start) * 1000
@@ -182,7 +186,9 @@ class GitHand:
)
return self._parse_output(
command, stdout_bytes, stderr_bytes,
command,
stdout_bytes,
stderr_bytes,
returncode=returncode,
latency_ms=(time.time() - start) * 1000,
)