Built-in sandbox SHIM: a ruff module (and vis-agent python -m ruff CLI) for the
model's Python sandbox, backed by the SAME in-process ruff the Python
language pack's format_code/lint_code use — the com.blockether/ruff FFI
over a first-party cdylib. No pip, no ruff binary on PATH, and it survives
Ruff's OWN configuration discovery is authoritative: for every file we ask
the host for the nearest .ruff.toml / ruff.toml / pyproject.toml with a
[tool.ruff] table, walking up from that file, and hand it back to ruff. A
tree with no configuration gets ruff's built-in defaults (E4, E7, E9, F,
line-length 88) — exactly what the real ruff CLI does — and check says so
on stderr. check --fix applies safe fixes (and configured unsafe fixes), while
directory walks honor exclude and extend-exclude; the module announces that
it is an in-process shim rather than a full wheel.
Built-in sandbox SHIM: a `ruff` module (and `vis-agent python -m ruff` CLI) for the model's Python sandbox, backed by the SAME in-process ruff the Python language pack's `format_code`/`lint_code` use — the `com.blockether/ruff` FFI over a first-party cdylib. No pip, no `ruff` binary on PATH, and it survives Ruff's OWN configuration discovery is authoritative: for every file we ask the host for the nearest `.ruff.toml` / `ruff.toml` / `pyproject.toml` with a `[tool.ruff]` table, walking up from that file, and hand it back to ruff. A tree with no configuration gets ruff's built-in defaults (E4, E7, E9, F, line-length 88) — exactly what the real `ruff` CLI does — and `check` says so on stderr. `check --fix` applies safe fixes (and configured unsafe fixes), while directory walks honor `exclude` and `extend-exclude`; the module announces that it is an in-process shim rather than a full wheel.
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |