--- name: Run Tests on Save description: Automatically run relevant tests when a Python service file is saved version: "1.0" trigger: type: onSave filePattern: "services/**/*.py" --- When a Python file under `services/` is saved: 1. Identify which service module was modified (e.g. `services/ingestion/worker.py` → `ingestion`) 2. Look for corresponding tests in `tests/` matching the service name 3. Run `pytest tests/test_{service_name}*.py -x --tb=short -q` if test files exist 4. If no specific test file exists, run `ruff check` on the modified file to catch syntax/lint issues 5. Report results concisely — only show failures or a one-line success confirmation