The project uses a src layout (packages = ["src/globalrouter"]), but the pytest config only sets testpaths and does not add src to the import path. In a fresh checkout, python -m pytest -q fails during collection with ModuleNotFoundError: No module named 'globalrouter'; PYTHONPATH=src python -m pytest -q passes. Add pythonpath = ["src"] under [tool.pytest.ini_options] or make the test runner install the package before invoking pytest.
File: pyproject.toml
Line: 60
Severity: high
Summary: missing pytest pythonpath for src layout
The project uses a src layout (
packages = ["src/globalrouter"]), but the pytest config only setstestpathsand does not addsrcto the import path. In a fresh checkout,python -m pytest -qfails during collection withModuleNotFoundError: No module named 'globalrouter';PYTHONPATH=src python -m pytest -qpasses. Addpythonpath = ["src"]under[tool.pytest.ini_options]or make the test runner install the package before invoking pytest.File:
pyproject.tomlLine: 60
Severity: high
Summary: missing pytest pythonpath for src layout