Skip to content

Commit 0492fe1

Browse files
committed
fix: configure mypy path and package settings to resolve module conflicts
1 parent 8c043ef commit 0492fe1

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

pyproject.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -82,10 +82,10 @@ warn_unused_configs = true
8282
ignore_missing_imports = true
8383
strict = true
8484
exclude = ["tests/"]
85-
# Fix for module path conflicts: Run mypy from src/ directory
86-
# This avoids conflicts between installed package and source code
87-
check_untyped_defs = true
88-
# Configuration works when run as: cd src && mypy contextcraft
85+
mypy_path = "src"
86+
packages = ["contextcraft"]
87+
namespace_packages = true
88+
explicit_package_bases = true
8989

9090
# Configuration for Pytest (optional, many things are auto-discovered)
9191
[tool.pytest.ini_options]

0 commit comments

Comments
 (0)