From b408993834b05da660e5bbd13939a2995cdebe32 Mon Sep 17 00:00:00 2001 From: CleverThis Date: Tue, 2 Jun 2026 15:33:31 -0400 Subject: [PATCH] fix(lint): apply ruff format to security_scan_hooks_steps.py --- features/steps/security_scan_hooks_steps.py | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/features/steps/security_scan_hooks_steps.py b/features/steps/security_scan_hooks_steps.py index 93ab8b621..b54ce62dc 100644 --- a/features/steps/security_scan_hooks_steps.py +++ b/features/steps/security_scan_hooks_steps.py @@ -282,7 +282,9 @@ def step_semgrep_rule_has_reraise_pattern_not(context: Any, rule_id: str) -> Non break # Also handle nested pattern-either blocks inside alternation groups - nested_either = alt.get("pattern-either") if isinstance(alt, dict) else None + nested_either = ( + alt.get("pattern-either") if isinstance(alt, dict) else None + ) if isinstance(nested_either, list): for nested_alt in nested_either: pn = nested_alt.get("pattern-not", "") @@ -333,15 +335,11 @@ def step_read_lint_session(context: Any) -> None: def step_lint_session_has_semgrep(context: Any) -> None: source = context.lint_session_source if "semgrep" not in source.lower(): - raise AssertionError( - "lint session does not contain a semgrep invocation" - ) + raise AssertionError("lint session does not contain a semgrep invocation") @then('the lint session source should reference ".semgrep.yml"') def step_lint_session_references_semgrep_yml(context: Any) -> None: source = context.lint_session_source if ".semgrep.yml" not in source: - raise AssertionError( - "lint session does not reference '.semgrep.yml'" - ) + raise AssertionError("lint session does not reference '.semgrep.yml'")