REA Ruff notes (unofficial)
Ruff trees (ruff.toml / pyproject.toml [tool.ruff] / select / ignore pins) record Python lint identity. In REA 6.7.x, treat selected select and ignore labels as Evidence beside archive/package routes — complementing Bandit / golangci-lint / ESLint cousins without inventing APIs. Distinct from rea-bandit (general lint ≠ Bandit security) and rea-golangci-lint (Python ≠ Go). Preferred free backup from batch120 note — KEEP.
Mental model
- Authorize the Ruff config tree (+ packaged charts you hold).
- Quote selected identity labels you actually see (never paste secrets/tokens).
- Cousins → bandit · golangci-lint · eslint-flat · shellcheck.
- Bind absolute paths honestly → rea-evidence-explained.
- Do not invent a
inspect_ruffAPI REA never called.
Minimal path
# authorized Ruff ruff.toml / select-ignore pins (+ charts you hold)
# quote selected identity labels into case notes (never live secrets)
# cousins → peer lanes above
# REA package/archive routes on /absolute/path/artifact --json
# do not invent: rea inspect_ruff .
Compare
| Artifact | Honest posture |
|---|---|
| select / ignore pins | Ruff stack identity facts |
| Peer | rea-bandit |
| Peer | rea-golangci-lint |
| Not this | rea-eslint-flat (ESLint zoom) |
| Evidence binder | rea-evidence-explained |
Config literacy notes (authorized trees)
- Quote selected rule codes, select/ignore lists, and target-version floors only — enough for most Evidence binders.
- Private index tokens and private plugin secrets are secrets — record key names only.
- Keep Ruff stack identity distinct from Bandit / golangci-lint trees in case notes.
- Chart image tag pins are identity Evidence — label them separately from cousin pages.
- Select keys are useful inventory — quote them without inventing REA helpers for live Ruff scans.
Scope we will not cover
- No inventing
inspect_ruff/ automatic scans against foreign repos. - No credential theft from private index tokens or private plugins.
- No pirate redistribution of proprietary Ruff trees.
- No crack framing via Ruff pins.
- No cookbooks that weaken Python lint policy on foreign accounts.
- No using Ruff as an unauthorized lint-recon guide against repos you do not own.
Honest limits
RepoRead documents config literacy — how authorized Ruff trees relate to Evidence — not a full Python lint course. Prefer upstream Ruff docs; use rea-bandit for Python security-lint peers. When REA 6.7.0 has no dedicated helper, quote the pins you opened and stay on documented archive/package lanes.
RepoRead is unofficial. Prefer config honesty + DISCLAIMER.md.
FAQ
How is this different from rea-bandit / rea-golangci-lint / rea-eslint-flat / rea-shellcheck?
rea-bandit covers Bandit. rea-golangci-lint covers golangci-lint. rea-eslint-flat covers ESLint flat config. rea-shellcheck covers ShellCheck. This page zooms on Ruff Python lint stack identity — it does not overwrite those pages.
Is there inspect_ruff in 6.7.0?
Not assumed. Quote ruff.toml / pyproject.toml [tool.ruff] / select / ignore pins you actually open, then use documented package/archive lanes. Do not invent inspect_ruff.
Does REA call Ruff APIs or steal tokens?
No. Local trees only. Redact private index tokens and private plugin secrets; do not treat REA as a Ruff runner. No credential theft.
How should I label Evidence vs cousin trees?
Label Evidence by the file present. Keep Ruff stack identity separate from rea-bandit (general lint ≠ Bandit security) and rea-golangci-lint.
npm version checked?
rea-agents 6.7.0 (re-checked 2026-10-24).