Skip to content

build(pkg): add src/__init__.py to define explicit package root - #20

Open
ravimahatonp wants to merge 1 commit into
ChainLearnOfficial:mainfrom
ravimahatonp:add-src-init-package
Open

ravimahatonp wants to merge 1 commit into
ChainLearnOfficial:mainfrom
ravimahatonp:add-src-init-package

Conversation

@ravimahatonp

Copy link
Copy Markdown

What

Closes #14

Adds src/__init__.py to turn src into an explicit regular Python package rather than relying on an implicit namespace package.

Why

Ensures consistent resolution when importing modules (from src.config import settings) across varying execution environments, IDE type checkers, and test runners like pytest with --import-mode=importlib.

- Add src/__init__.py to prevent fragile implicit namespace package resolution
- Enable reliable imports like 'from src.config import settings' across testing frameworks, strict mypy, and tooling

Closes ChainLearnOfficial#14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Missing src/__init__.py (implicit namespace package)

1 participant