From 1d8cc7ca9f8f133f780b238a9b9ff640545fac00 Mon Sep 17 00:00:00 2001 From: Benjamin De Vierno <54540257+bdevierno1@users.noreply.github.com> Date: Mon, 13 Jul 2026 19:38:48 -0400 Subject: [PATCH] fix(ci): add pyproject.toml so pytest can import data_quality package CI runs pytest from backend/ working-directory but there was no pythonpath configuration, so `from data_quality.checks import ...` raised ModuleNotFoundError at collection time (exit 2). Adding [tool.pytest.ini_options] pythonpath = ["."] tells pytest to prepend the backend/ directory to sys.path, making data_quality and any sibling packages importable without an install step. Co-Authored-By: Claude Sonnet 4.6 --- backend/pyproject.toml | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 backend/pyproject.toml diff --git a/backend/pyproject.toml b/backend/pyproject.toml new file mode 100644 index 0000000..b673220 --- /dev/null +++ b/backend/pyproject.toml @@ -0,0 +1,5 @@ +[tool.pytest.ini_options] +# Add the backend/ directory to sys.path so that `data_quality` (and other +# top-level packages that live alongside `tests/`) are importable without +# a pip-install step in CI. +pythonpath = ["."]