clan-cli: Fix Ruff linting errors

clan-cli: Ruff fixes

ignore noqa lint

fix more ruff issues
This commit is contained in:
Qubasa
2025-07-08 14:49:31 +07:00
parent ad243d843e
commit 152ac2c07e
5 changed files with 12 additions and 7 deletions

View File

@@ -10,9 +10,9 @@ from clan_cli.tests.helpers import cli
from clan_cli.vars.check import check_vars
from clan_cli.vars.generate import (
Generator,
run_generators,
create_machine_vars_interactive,
get_generators,
run_generators,
)
from clan_cli.vars.get import get_machine_var
from clan_cli.vars.graph import all_missing_closure, requested_closure

View File

@@ -79,7 +79,10 @@ class SecretStore(StoreBase):
return Path(self.entry_prefix) / self.rel_dir(generator, name)
def _run_pass(
self, *args: str, input: bytes | None = None, check: bool = True # noqa: A002
self,
*args: str,
input: bytes | None = None, # noqa: A002
check: bool = True,
) -> subprocess.CompletedProcess[bytes]:
cmd = [self._pass_command, *args]
# We need bytes support here, so we can not use clan cmd.