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
- id: C1 claim: Ruff is a Python linter and code formatter, written in Rust. source: S1 evidence: "An extremely fast Python linter and code formatter, written in Rust."
- id: C2 claim: Ruff is installable via pip and supports pyproject.toml. source: S1 evidence: "Installable via"
- id: C3 claim: The docs claim drop-in parity with Flake8, isort, and Black. source: S1 evidence: "Drop-in parity with"
- id: C4 claim: The README repeats that Ruff is a linter and formatter in Rust. source: S2 evidence: "An extremely fast Python linter and code formatter, written in Rust."
Sources
- [S1] Ruff documentation. Ruff docs. https://docs.astral.sh/ruff/ . License: MIT. Accessed 2026-11-16.
- [S2] Ruff README. astral-sh/ruff (GitHub). https://github.com/astral-sh/ruff/blob/main/README.md . License: MIT. Accessed 2026-11-16.
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
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.},
}
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.