clipwright/pyproject.toml
pedro-bento 0040aa49da
All checks were successful
CI / dashboard-e2e (push) Successful in 1m44s
CI / unit (push) Successful in 29s
CI / backend-e2e (push) Successful in 1m17s
test/e2e-coverage (#5)
Reviewed-on: #5
Co-authored-by: pedro-bento <mail@pbento.pt>
Co-committed-by: pedro-bento <mail@pbento.pt>
2026-10-04 22:28:46 +01:00

41 lines
1.7 KiB
TOML

# 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 — which also
# avoids colliding with the published `clipwright` CLI distribution under
# `cli/`.
[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 (see requirements-ml-e2e.txt)",
]
# 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",
"cli",
"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"]