fix(lsp): apply ruff format to lsp_path_traversal_security_steps.py
CI / lint (pull_request) Successful in 40s
CI / typecheck (pull_request) Successful in 1m7s
CI / quality (pull_request) Successful in 1m1s
CI / security (pull_request) Successful in 1m34s
CI / push-validation (pull_request) Successful in 46s
CI / helm (pull_request) Successful in 57s
CI / build (pull_request) Successful in 1m0s
CI / unit_tests (pull_request) Successful in 5m14s
CI / docker (pull_request) Successful in 2m39s
CI / integration_tests (pull_request) Failing after 11m42s
CI / coverage (pull_request) Failing after 11m35s
CI / status-check (pull_request) Has been cancelled

This commit is contained in:
2026-04-24 05:30:31 +00:00
committed by Forgejo
parent b8b36064a9
commit 188b957320
@@ -101,9 +101,7 @@ def step_lspsec_sibling_dir(context: Context) -> None:
context.add_cleanup(cleanup)
@given(
'lspsec a symlink "{linkname}" inside the workspace pointing to "{target}"'
)
@given('lspsec a symlink "{linkname}" inside the workspace pointing to "{target}"')
def step_lspsec_symlink_in_workspace(
context: Context, linkname: str, target: str
) -> None:
@@ -157,9 +155,7 @@ def step_lspsec_runtime_with_workspace(context: Context) -> None:
context.lspsec_mock_lifecycle = mock_lifecycle
@given(
'lspsec a healthy mock server "{name}" registered for the workspace'
)
@given('lspsec a healthy mock server "{name}" registered for the workspace')
def step_lspsec_register_server_for_workspace(context: Context, name: str) -> None:
registry = LspRegistry()
config = _make_config(name)
@@ -242,9 +238,7 @@ def step_lspsec_read_workspace_file(context: Context, filename: str) -> None:
context.lspsec_error = exc
@when(
"lspsec I call read_file on a dot-dot traversal path targeting etc-passwd"
)
@when("lspsec I call read_file on a dot-dot traversal path targeting etc-passwd")
def step_lspsec_read_file_dotdot(context: Context) -> None:
# Build a path like /tmp/lspsec_ws_xxx/../../etc/passwd
traversal = os.path.join(context.lspsec_workspace, "..", "..", "etc", "passwd")
@@ -289,9 +283,7 @@ def step_lspsec_read_file_no_workspace(context: Context) -> None:
context.lspsec_error = exc
@when(
'lspsec I try to get diagnostics for "{name}" on absolute path "{path}"'
)
@when('lspsec I try to get diagnostics for "{name}" on absolute path "{path}"')
def step_lspsec_get_diagnostics_traversal(
context: Context, name: str, path: str
) -> None:
@@ -302,9 +294,7 @@ def step_lspsec_get_diagnostics_traversal(
context.lspsec_error = exc
@when(
'lspsec I get diagnostics for "{name}" on workspace file "{filename}"'
)
@when('lspsec I get diagnostics for "{name}" on workspace file "{filename}"')
def step_lspsec_get_diagnostics_valid(
context: Context, name: str, filename: str
) -> None: