Skip to content

Commit a48efae

Browse files
committed
fixed Linter
1 parent 0fc547c commit a48efae

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

tests/validation/tools/combine_reports.py

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,9 @@ def parse_report_options(values: Iterable[str]) -> Dict[str, Path]:
6262
mapping: Dict[str, Path] = {}
6363
for value in values:
6464
if "=" not in value:
65-
raise ValueError(f"Invalid --report option '{value}'. Expected format NIC=PATH.")
65+
raise ValueError(
66+
f"Invalid --report option '{value}'. Expected format NIC=PATH."
67+
)
6668
nic, raw_path = value.split("=", 1)
6769
nic = nic.strip()
6870
if not nic:
@@ -97,7 +99,11 @@ def parse_report(path: Path) -> Dict[Tuple[str, str], str]:
9799
test_name = test_name_element.get_text(separator=" ", strip=True)
98100
else:
99101
title_element = test_details.select_one(".title")
100-
test_name = title_element.get_text(separator=" ", strip=True) if title_element else "UNKNOWN"
102+
test_name = (
103+
title_element.get_text(separator=" ", strip=True)
104+
if title_element
105+
else "UNKNOWN"
106+
)
101107

102108
results[(file_path, test_name)] = STATUS_LABELS.get(status_token, STATUS_LABELS["unknown"])
103109

@@ -146,7 +152,9 @@ def main() -> None:
146152
print(f"Parsed {len(parsed)} tests for {nic_name} from {report_path}")
147153

148154
if not all_keys:
149-
print("Warning: No tests discovered across provided reports. Writing placeholder entry.")
155+
print(
156+
"Warning: No tests discovered across provided reports. Writing placeholder entry."
157+
)
150158
df = pd.DataFrame(
151159
[
152160
{

0 commit comments

Comments
 (0)