# The backend is not packaged or published: it runs from a bind-mounted source # tree (docker-compose.yml) and `requirements.txt` is the single runtime # dependency source for the Docker image. This file therefore carries tool # configuration only — no [build-system] and no [project] table. [tool.pytest.ini_options] minversion = "7.0" testpaths = ["tests"] # Makes the repo-root `clipwright/` package importable without a sys.path hack # in tests/conftest.py. pythonpath = ["."] # E2E taxonomy. The fast unit suite (`tests/test_*.py`) is selected with # `-m "not e2e"`; the E2E lanes live under `tests/e2e/` and mark themselves. # `ml` gates the heavy ML stack (torch/ultralytics/mediapipe/faster-whisper). markers = [ "e2e: end-to-end tests, run separately from the fast unit suite", "pipeline: end-to-end tests that exercise the pipeline stages", "ml: tests that need the heavy ML stack (torch/ultralytics/mediapipe/faster-whisper)", ] # Safe: `grep -rn "async def test_" tests/` found no existing async tests, so # auto mode does not change the behaviour of the unit suite. pytest-timeout is # passed on the CI command line (`--timeout=120`) instead of an ini key so the # thin unit environment (which may lack pytest-timeout) still collects. asyncio_mode = "auto" [tool.ruff] line-length = 100 target-version = "py311" extend-exclude = [ "dashboard", "output", "uploads", ] [tool.ruff.lint] # Correctness only for now: keep this migration reviewable. Style/import rules # can be ratcheted later without conflicting with the structural change. select = ["E4", "E7", "E9", "F"]