Skip to content

Commit 42c68a5

Browse files
committed
formatting
1 parent 421575d commit 42c68a5

File tree

3 files changed

+15
-15
lines changed

3 files changed

+15
-15
lines changed

src/test_suite/fuzzcorp_api_client.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ def from_dict(cls, data: Dict[str, Any]) -> "LineageRepro":
4343
if not hash_value:
4444
raise KeyError("Hash")
4545

46-
# CreatedAt is present in both schemas; normalise if available
46+
# CreatedAt is present in both schemas, normalize if available
4747
created_at_str = data.get("CreatedAt") or data.get("created_at")
4848
if created_at_str:
4949
# Handle both RFC3339 formats
@@ -55,22 +55,22 @@ def from_dict(cls, data: Dict[str, Any]) -> "LineageRepro":
5555
created_at = datetime.min
5656

5757
# Count:
58-
# - prefer explicit Count from legacy schema
59-
# - otherwise derive from ConfigIndices (one count per config index)
60-
# - final fallback is a single repro
58+
# - prefer explicit Count from legacy schema
59+
# - otherwise derive from ConfigIndices (one count per config index)
60+
# - final fallback is a single repro
6161
if "Count" in data:
6262
count = int(data["Count"])
6363
else:
6464
cfg_indices = data.get("ConfigIndices") or data.get("config_indices") or []
6565
if isinstance(cfg_indices, list):
6666
count = max(len(cfg_indices), 1) if cfg_indices else 1
6767
else:
68-
# Unexpected shape; treat as a single repro
68+
# Unexpected shape: treat as a single repro
6969
count = 1
7070

7171
# AllVerified:
72-
# - legacy AllVerified flag if present
73-
# - otherwise fall back to the newer Verified flag
72+
# - legacy AllVerified flag if present
73+
# - otherwise fall back to the newer Verified flag
7474
if "AllVerified" in data:
7575
all_verified = bool(data["AllVerified"])
7676
else:
@@ -103,8 +103,8 @@ def from_dict(cls, data: Dict[str, Any]) -> "ReproIndexResponse":
103103
lineages[lineage_name] = [LineageRepro.from_dict(r) for r in (repros or [])]
104104

105105
# Bundle ID:
106-
# - legacy compat: top-level "BundleID"
107-
# - current NG API: "Bundle" object with "id" field
106+
# - legacy compat: top-level "BundleID"
107+
# - current NG API: "Bundle" object with "id" field
108108
bundle_id = data.get("BundleID")
109109
if not bundle_id:
110110
bundle = data.get("Bundle") or data.get("bundle")

src/test_suite/multiprocessing_utils.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -684,17 +684,17 @@ def download_and_process(source):
684684
project=config.get_project(),
685685
)
686686

687-
# Require at least one artifact hash; if none are present, there is
688-
# nothing we can download or convert into fixtures.
687+
# Require at least one artifact hash. If none are present, there is
688+
# nothing we can download or convert into fixtures...
689689
if not repro_metadata.artifact_hashes:
690690
return {
691691
"success": False,
692692
"repro": f"{section_name}/{crash_hash}",
693693
"message": "Failed to process: no artifacts found",
694694
}
695695

696-
# Determine which artifacts to download: always process all available
697-
# artifacts for this repro. Any duplicates will be naturally deduplicated
696+
# Determine which artifacts to download: Always process all available
697+
# artifacts for this repro. Any duplicates will be naturally deduped
698698
# later at the fixture level by hash.
699699
artifacts_to_download = repro_metadata.artifact_hashes
700700
print(

src/test_suite/test_suite.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -683,7 +683,7 @@ def decode_protobufs(
683683
use_processes=True,
684684
)
685685
except BrokenProcessPool:
686-
# Worker crash already described; exit without a verbose traceback.
686+
# Worker crash already described: exit without a verbose traceback.
687687
raise typer.Exit(code=1)
688688

689689
print("-" * LOG_FILE_SEPARATOR_LENGTH)
@@ -946,7 +946,7 @@ def download_fixture(
946946
print(f"[ERROR] Response: {e.response.text}")
947947
raise typer.Exit(code=1)
948948
except typer.Exit:
949-
# Allow clean exits (e.g., from process_items) without extra tracebacks.
949+
# Allow clean exits (e.g. from process_items) without extra tracebacks.
950950
raise
951951
except Exception as e:
952952
print(f"[ERROR] Failed to download fixtures: {e}")

0 commit comments

Comments
 (0)