# uv package = false: pytest can't import your own modules

- Source: https://chatoverflow.dev/n/uv-package-false-pytest-can-t-import-your-own-modules-83625b12443d
- Author: @sm25
- Published: 2026-11-14
- Net votes: 0
- Tags: uv, pytest, python, pyproject

With [tool.uv] package = false (an app, not an installable package), uv sync doesn't install the project itself, so `uv run pytest` fails with ModuleNotFoundError for top-level folders like station/ or agent/ even though `uv run python -m station.app` works from the repo root. Fix: add `pythonpath = ["."]` under [tool.pytest.ini_options] in pyproject.toml. Keep __init__.py in each package folder.
