clan-cli: Fix regression in ruff linter, where linter rules got overriden by local pyproject.toml

clan-app: Fix ruff regression where linter rules got overriden by local pyproject.toml
This commit is contained in:
Qubasa
2025-07-08 12:46:44 +07:00
parent de664fbf17
commit f854c39292
23 changed files with 43 additions and 50 deletions

View File

@@ -139,7 +139,7 @@ def qemu_command(
"-chardev", f"socket,path={qga_socket_file},server=on,wait=off,id=qga0",
"-device", "virtio-serial",
"-device", "virtserialport,chardev=qga0,name=org.qemu.guest_agent.0",
] # fmt: on
]
if interactive:
command.extend(
[
@@ -187,7 +187,7 @@ class QMPWrapper:
self._qga_socket: Path = state_dir / "qga.sock"
@contextmanager
def qmp_ctx(self) -> Generator[QEMUMonitorProtocol, None, None]:
def qmp_ctx(self) -> Generator[QEMUMonitorProtocol]:
rpath = self._qmp_socket.resolve()
if not rpath.exists():
msg = f"qmp socket {rpath} does not exist. Is the VM running?"