You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+14-1Lines changed: 14 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -271,7 +271,20 @@ uv run pytest -v
271
271
```
272
272
273
273
**4. CI (GitHub Actions)**
274
-
On every push and pull request to `main` or `master`, the workflow in `.github/workflows/tests.yml` runs `uv sync` and `uv run pytest -v`. No secrets required; embedding tests that need optional deps are skipped in CI.
274
+
On every push and pull request to `main` or `master`, the workflow in `.github/workflows/tests.yml` runs **lint** (Ruff check + format check) and **tests** (`uv run pytest -v`). No secrets required; embedding tests that need optional deps are skipped in CI.
275
+
276
+
**5. Linting (Ruff)**
277
+
Locally: `uv run ruff check .` and `uv run ruff format --check .`. To auto-fix: `uv run ruff check . --fix` and `uv run ruff format .`. Config is in `pyproject.toml` under `[tool.ruff]`.
278
+
279
+
**6. Linting desde Docker Compose**
280
+
Construir la imagen de test (incluye Ruff) y ejecutar lint sobre el código montado:
281
+
282
+
```bash
283
+
docker compose --profile lint build lint
284
+
docker compose --profile lint run --rm lint
285
+
```
286
+
287
+
(Con Podman: `podman compose --profile lint build lint` y `podman compose --profile lint run --rm lint`.) El servicio `lint` monta `app/`, `tests/` y `pyproject.toml`; no hace falta reconstruir para lintar cambios. Para ejecutar tests en el mismo contenedor: `docker compose --profile lint run --rm lint uv run pytest -v`.
0 commit comments