Skip to content

Missing src/__init__.py (implicit namespace package) #14

Description

@DeFiVC

What

All sub-packages (routes/, services/, knowledge/, prompts/, models/) have __init__.py files, but src/ itself does not.

Why

The code works via Python 3's implicit namespace packages, but this is fragile: some tools (pytest's --import-mode=importlib, certain IDE inspectors, mypy in strict mode) may fail to resolve from src.config import settings. The scripts/build_index.py and scripts/test_generation.py work around this with sys.path.insert(0, ...), which further confirms the packaging issue.

Scope

  • Add src/__init__.py

Acceptance Criteria

  • src/__init__.py exists
  • Tools can resolve from src.config import settings without workarounds

Technical Context

  • File: src/ directory

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions