style(valid-detection-benchmark): apply ruff format to 15 benchmark modules

CI runs ruff format --check over the whole repository, and these modules under benchmarks/valid were the last unformatted files. Formatting only: the AST dump of every file is identical to the previous revision and the logical line count is unchanged (admission_execution.py and admission_projection.py stay at 400).
This commit is contained in:
Marius Ciepluch
2026-11-23 11:42:55 +01:00
parent 0d5aaeecca
commit bacbe53a0b
15 changed files with 244 additions and 332 deletions
@@ -195,12 +195,7 @@ def _selection_provenance(draw: OrdinaryPopulationDrawV1) -> str:
return content_digest(
{
"history_sources": tuple(
sorted(
{
(push.canonical_repository, push.network_identity_digest, push.history_source_digest)
for push in draw.pushes
}
)
sorted({(push.canonical_repository, push.network_identity_digest, push.history_source_digest) for push in draw.pushes})
),
"accepted_fix_exclusions": tuple(_fix_exclusion_value(item) for item in draw.fix_exclusions),
"policy_digest": draw.policy_digest,
@@ -527,9 +522,7 @@ def _baseline_binding(
projection.projection_digest,
"",
)
binding = ReplacementBaselineBindingV1(
**{**vars(draft), "binding_digest": content_digest(_binding_value(draft, include_digest=False))}
)
binding = ReplacementBaselineBindingV1(**{**vars(draft), "binding_digest": content_digest(_binding_value(draft, include_digest=False))})
replacement_baseline_binding_bytes(binding)
return binding