style(test): use PROJECT_ROOT constant for clearer path resolution in pr_compliance_checklist_steps
CI / push-validation (pull_request) Successful in 33s
CI / helm (pull_request) Successful in 43s
CI / build (pull_request) Successful in 57s
CI / lint (pull_request) Successful in 1m20s
CI / quality (pull_request) Successful in 1m21s
CI / typecheck (pull_request) Successful in 1m29s
CI / security (pull_request) Successful in 1m32s
CI / benchmark-publish (pull_request) Has been skipped
CI / benchmark-regression (pull_request) Failing after 1m5s
CI / integration_tests (pull_request) Successful in 3m23s
CI / e2e_tests (pull_request) Successful in 3m47s
CI / unit_tests (pull_request) Failing after 4m37s
CI / coverage (pull_request) Has been skipped
CI / docker (pull_request) Has been skipped
CI / status-check (pull_request) Failing after 3s

Applies reviewer suggestion from PR #10071 review #7500 (comment #249234):
replace chained .parent calls with a named PROJECT_ROOT constant for
improved readability and maintainability.

ISSUES CLOSED: #9824
This commit is contained in:
2026-05-05 15:19:41 +00:00
parent 7f4a93c97b
commit 9458483aff
@@ -5,12 +5,8 @@ from typing import Any
from behave import given, then, when
AGENT_DEF_PATH = (
Path(__file__).parent.parent.parent
/ ".opencode"
/ "agents"
/ "implementation-supervisor.md"
)
PROJECT_ROOT = Path(__file__).resolve().parents[3]
AGENT_DEF_PATH = PROJECT_ROOT / ".opencode" / "agents" / "implementation-supervisor.md"
@given("the implementation-supervisor.md agent definition exists")