0bc734c020
Applies `ruff format` to the accumulated formatting debt on this branch. Formatting-only — no behavioral changes. Required for CI/lint's format gate (`nox -s format -- --check`), which the branch was failing on 288 tracked files that drifted from ruff's canonical style. In-progress WIP files are intentionally excluded so this commit stays a clean formatting-only diff. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
22 lines
735 B
Python
22 lines
735 B
Python
"""Test-collection setup for the controller test subdir.
|
|
|
|
The controller code lives in ``tools/controller/`` as a proper Python
|
|
package (``__init__.py`` everywhere). To import it as
|
|
``from tools.controller.contracts.v1 import …``, the repo root must
|
|
be on ``sys.path``. Older tests under ``tests/auto_agents/`` use
|
|
``load_tool_module()`` from the parent conftest because they load
|
|
loose ``tools/*.py`` scripts that aren't part of a package; controller
|
|
tests bypass that and import normally.
|
|
"""
|
|
|
|
from __future__ import annotations
|
|
|
|
import os
|
|
import sys
|
|
|
|
_REPO_ROOT = os.path.dirname(
|
|
os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
|
|
)
|
|
if _REPO_ROOT not in sys.path:
|
|
sys.path.insert(0, _REPO_ROOT)
|