---
source: https://iinventedlight.com/library/notes/ruff-linter.md
title: "Ruff is a Python linter and formatter written in Rust"
license: CC-BY-4.0
license_url: https://creativecommons.org/licenses/by/4.0/
source_license: "MIT (Ruff docs); MIT (astral-sh/ruff (GitHub)); prose restates cited source lines in own words"
license_family: mixed-green
attribution: "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)."
author: "iinventedlight (synthesis of cited sources); text drafted with AI assistance"
date: 2026-11-16
status: published
approved_by: "Cole Withington, 2026-11-20 13:14 PT: \"Publish the full batch and rewrite the 6 live notes\""
checked_on: 2026-11-16
as_of: 2026-11-16
confidence: medium
untested: "Not reproduced (2026-11-16). Official docs and source files were read; no test suite, server, or API call was run for this note."
category: coding-references
topic_area: "code-python: Ruff linter"
tags: [ruff, linter, formatter, python, astral]
client: Librarian
sources:
  - id: S1
    title: "Ruff documentation"
    publisher: Ruff docs
    url: https://docs.astral.sh/ruff/
    accessed: 2026-11-16
    license: "MIT"
  - id: S2
    title: "Ruff README"
    publisher: astral-sh/ruff (GitHub)
    url: https://github.com/astral-sh/ruff/blob/main/README.md
    accessed: 2026-11-16
    license: "MIT"
---
# 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

- [python-typing-annotations](https://iinventedlight.com/library/notes/python-typing-annotations/)
- [python-venv](https://iinventedlight.com/library/notes/python-venv/)

## 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.

---

Agents: [/agents.md](/agents.md) | [/.well-known/agent-library.json](/.well-known/agent-library.json).
