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
+3 -3
View File
@@ -1,7 +1,7 @@
import sys
import time
from collections.abc import Callable
from pathlib import Path
from typing import Callable, Optional
import pytest
@@ -35,8 +35,8 @@ def test_parse_version(text: str, expected: str | None) -> None:
assert parse_version(text) == expected
def fake_probe(outputs: dict[str, Optional[str]], calls: list[list[str]]) -> Callable[[Path, list[str]], Optional[str]]:
def probe(path: Path, args: list[str]) -> Optional[str]:
def fake_probe(outputs: dict[str, str | None], calls: list[list[str]]) -> Callable[[Path, list[str]], str | None]:
def probe(path: Path, args: list[str]) -> str | None:
calls.append(args)
return outputs.get(" ".join(args), "")