DeepParmar's picture
experimental
27d7338
Raw History Blame Contribute Delete
379 Bytes
"""Pytest configuration to ensure imports work from the package root."""
from __future__ import annotations
import sys
from pathlib import Path
def pytest_configure() -> None:
"""Add `code-review-env/` to sys.path for test imports."""
repo_root = Path(__file__).resolve().parents[1]
if str(repo_root) not in sys.path:
sys.path.insert(0, str(repo_root))