From e356f42fe68c0ed08133c1fd9903859fad470fe4 Mon Sep 17 00:00:00 2001 From: touhidzaman007 Date: Thu, 3 Sep 2026 08:07:41 +0600 Subject: [PATCH] fix(test): wrap Trivy fixture line for Ruff EOF --- .../tests/test_trivy_failure_upload_contract.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/services/analysis-engine/tests/test_trivy_failure_upload_contract.py b/services/analysis-engine/tests/test_trivy_failure_upload_contract.py index 52da837dc..5b094d24d 100644 --- a/services/analysis-engine/tests/test_trivy_failure_upload_contract.py +++ b/services/analysis-engine/tests/test_trivy_failure_upload_contract.py @@ -29,7 +29,11 @@ def _run_contract_checker(workflow_text: str) -> subprocess.CompletedProcess[str def _workflow_fixture(upload_condition: str, pull_request_comment_spacing: str = "") -> str: """Build the minimal fail-on-findings Trivy workflow needed by the checker.""" - comment_suffix = f"{pull_request_comment_spacing}# ordinary PR heads" if pull_request_comment_spacing else "" + comment_suffix = ( + f"{pull_request_comment_spacing}# ordinary PR heads" + if pull_request_comment_spacing + else "" + ) return f"""name: trivy on: push: