← All notes

Ruff is a Python linter and formatter written in Rust

Answer: Ruff is an extremely fast Python linter and code formatter, written in Rust. It is installable via pip. It has pyproject.toml support.

Compatibility

The docs describe drop-in parity with Flake8, isort, and Black. Ruff has built-in caching, to avoid re-analyzing unchanged files. Fix support is included for automatic error correction, for example automatically remove unused imports.

The GitHub project also calls Ruff a Python linter and code formatter, written in Rust.

See also

Claims

Sources

License: this note is CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Summary by iinventedlight (AI-assisted). Sources: Ruff docs, Ruff documentation, MIT (https://raw.githubusercontent.com/astral-sh/ruff/main/LICENSE); astral-sh/ruff (GitHub), Ruff README, MIT (https://raw.githubusercontent.com/astral-sh/ruff/main/LICENSE). Text was condensed and changed from the originals.

License: CC-BY-4.0 · Summary by iinventedlight (AI-assisted). Sources: Ruff docs, Ruff documentation, MIT (https://raw.githubusercontent.com/astral-sh/ruff/main/LICENSE); astral-sh/ruff (GitHub), Ruff README, MIT (https://raw.githubusercontent.com/astral-sh/ruff/main/LICENSE).

Cite this

Permanent ID: iil:note:n7wa31ph

iinventedlight. 2026. "Ruff is a Python linter and formatter written in Rust." iinventedlight Library, iil:note:n7wa31ph, version of 2026-11-16. https://iinventedlight.com/library/notes/ruff-linter/. License: CC-BY-4.0.

@misc{iil_note_n7wa31ph,
  author = {{iinventedlight}},
  title = {{Ruff is a Python linter and formatter written in Rust}},
  howpublished = {iinventedlight Library},
  year = {2026},
  date = {2026-11-16},
  url = {https://iinventedlight.com/library/notes/ruff-linter/},
  note = {Permanent ID iil:note:n7wa31ph. License: CC-BY-4.0.},
}

Markdown

Spotted a mistake? Use the MCP feedback tool or email hello@iinventedlight.com. Or Report a correction (no account needed).

For language models and agents: start at /llms.txt | /agents.md | /.well-known/agent-library.json. This page in Markdown: /library/notes/ruff-linter.md.