style: turn on ruff UP and B rules and fix every finding

This commit is contained in:
imSp4rky
2026-11-25 16:34:09 -07:00
parent 1a63076df2
commit d8058a3610
264 changed files with 2950 additions and 2966 deletions
+6 -7
View File
@@ -1,6 +1,5 @@
import logging
from pathlib import Path
from typing import Optional
import click
import requests
@@ -45,9 +44,9 @@ def prd() -> None:
def new(
ctx: click.Context,
paths: tuple[Path, ...],
encryption_key: Optional[Path],
signing_key: Optional[Path],
output: Optional[Path],
encryption_key: Path | None,
signing_key: Path | None,
output: Path | None,
) -> None:
"""Make a new .PRD device file.
@@ -155,9 +154,9 @@ def new(
def reprovision_device(
ctx: click.Context,
prd_path: Path,
encryption_key: Optional[Path],
signing_key: Optional[Path],
output: Optional[Path] = None,
encryption_key: Path | None,
signing_key: Path | None,
output: Path | None = None,
) -> None:
"""Reprovision a PlayReady Device (.prd) file."""
if not prd_path.is_file():