Summary
Required by infra#4 (hot-reload for all Python backend services in dev). The dev docker-compose.dev.yaml will wrap service startup with watchfiles to get ~1s reload on edits in src/. For that to work without installing at container start, watchfiles must live in the image.
Changes
- Add
watchfiles to [dependency-groups].dev in pyproject.toml
uv lock
- Commit
pyproject.toml + uv.lock
Verification
uv sync --locked succeeds
uv run watchfiles --help works inside the image (or just inside the venv locally)
Context
The infra PR replaces the service command in dev with:
watchfiles --filter python --target-type command 'python -m src.main' src
so the dep needs to be available on the image PATH.
Summary
Required by infra#4 (hot-reload for all Python backend services in dev). The dev
docker-compose.dev.yamlwill wrap service startup withwatchfilesto get~1sreload on edits insrc/. For that to work without installing at container start,watchfilesmust live in the image.Changes
watchfilesto[dependency-groups].devinpyproject.tomluv lockpyproject.toml+uv.lockVerification
uv sync --lockedsucceedsuv run watchfiles --helpworks inside the image (or just inside the venv locally)Context
The infra PR replaces the service command in dev with:
watchfiles --filter python --target-type command 'python -m src.main' srcso the dep needs to be available on the image PATH.