mirror of
https://github.com/norandom/OpenUltraSAST.git
synced 2026-12-04 02:38:18 +00:00
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:
@@ -216,9 +216,7 @@ def _decode_canonical(content: bytes, label: str) -> dict[str, object]:
|
||||
if not isinstance(content, bytes) or not content:
|
||||
raise ArtifactContractError(f"{label} bytes must be nonempty")
|
||||
try:
|
||||
decoded = json.loads(
|
||||
content, object_pairs_hook=_unique_object, parse_constant=_reject_constant, parse_float=_finite_float
|
||||
)
|
||||
decoded = json.loads(content, object_pairs_hook=_unique_object, parse_constant=_reject_constant, parse_float=_finite_float)
|
||||
except ArtifactContractError:
|
||||
raise
|
||||
except (UnicodeError, json.JSONDecodeError, RecursionError) as error:
|
||||
|
||||
Reference in New Issue
Block a user