add RET, Q, RSE lint

This commit is contained in:
Jörg Thalheim
2024-09-02 15:58:49 +02:00
parent dca1bd084d
commit cb16cda3fa
31 changed files with 201 additions and 246 deletions

View File

@@ -24,8 +24,7 @@ def create_backup(machine: Machine, provider: str | None = None) -> None:
if proc.returncode != 0:
msg = "failed to start backup"
raise ClanError(msg)
else:
print("successfully started backup")
print("successfully started backup")
else:
if provider not in backup_scripts["providers"]:
msg = f"provider {provider} not found"
@@ -36,8 +35,7 @@ def create_backup(machine: Machine, provider: str | None = None) -> None:
if proc.returncode != 0:
msg = "failed to start backup"
raise ClanError(msg)
else:
print("successfully started backup")
print("successfully started backup")
def create_command(args: argparse.Namespace) -> None: