clipwright/pyproject.toml
pedro-bento 245a27c7a3 chore: drop watermark feature, CLI, docs, design.md; consolidate requirements
- Remove the watermark feature end to end (watermarked.py, apply_watermark/
  mark_delivery/watermark_filter, WATERMARK env, assets/) and its tests; self-host
  delivery is now unconditionally clean.
- Delete the unused cli/ package and .github/workflows/publish-cli.yml.
- Delete docs/ (compliance) and design.md; drop the dangling references in the
  legal page and the design-token/ui comments.
- Consolidate requirements: requirements.txt (runtime) + requirements-test.txt
  (unit + E2E); remove requirements-e2e.txt and requirements-ml-e2e.txt and
  point both CI jobs at the single test file. Add libgl1 to the unit job
  (scenedetect -> opencv-python links libGL).

Verified in the CI container: unit 701 passed; API E2E 209; pipeline E2E 127;
Playwright 19 passed / 1 skipped.
2026-10-05 09:53:47 +01:00

38 lines
1.6 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.
[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"]