Skip to content
Agents tracked: 506 Releases (7d): 634 Agent status: 4 with issuesSince last limit reset: Claude 15d · Codex 0d For AI agents: Markdown Updated Nov 26, 2026

Ruff

Extremely fast Python linter and code formatter written in Rust for modern projects.

Linting and formattingPYPI

GitHubWebsite

1. License

License from PyPI license expression.

github.com/astral-sh/ruff

From the package registry and GitHub, checked daily. Tap a verdict to see its source.How we checkedReport an error

What Ruff does

Extremely fast Python linter and code formatter written in Rust for modern projects.

Ruff popularity

80 / 100
Gid Score, #99 overall
108M
downloads a week, pypi
51.4K
GitHub stars
54
agent projects use it
Ruff: downloads per weekPyPI, ruff 107,532,645
Ruff: GitHub starsastral-sh/ruff 51,403

Gid Score measures public popularity and activity, not quality. How the Gid Score is calculated

How Ruff is used

  • Ruff is a dependency in 54 of the 6,258 public GitHub projects set up for AI coding agents that we scanned (3.3% of the 1,623 Python ones), #16 of 83 in linting and formatting.
  • Counting the projects our scan samples by dependency (Solana 3,067, Ethereum and EVM 1,774, 3D and games 3,130, agent frameworks and SDKs 13,750), it appears in 338; those are left out of every share on this page.
  • The most used alternative in our scan is Black (78 projects).
  • Projects that use it most often also use pytest (81.5%), Pydantic (70.4%), Uvicorn (59.3%).

By coding agent

34 projects, 1.0%
31 projects, 1.0%
22 projects, 0.9%
6 projects, 1.3%
5 projects, 1.8%

Often used with

In 81.5% of its projects
In 70.4% of its projects
In 59.3% of its projects
In 53.7% of its projects
In 51.9% of its projects
In 50.0% of its projects
In 44.4% of its projects
In 42.6% of its projects

More about Ruff

Head to head
More in Linting and formatting

Alternatives

Ruff This page

MITGid 80108M/wk

Black

Uncompromising Python code formatter enforcing consistent style automatically.

MITGid 7625.7M/wk

flake8

Modular Python linter combining PEP 8 style checking, PyFlakes and complexity analysis.

MITGid 629.5M/wk

Pylint

Python static code analyzer for detecting errors and style issues.

GPL-2.0-or-laterGid 619.1M/wk

pycodestyle

Python style guide checker that enforces PEP 8 code style conventions.

MITGid 6214M/wk

Pyflakes

Static code analyzer that checks Python for errors without executing.

MITGid 5612.1M/wk

autoflake

Removes unused imports and variables from Python code.

MITGid 381.1M/wk

Compare Ruff with another tool

Get started

Install it.

pip install ruff

No step-by-step start for Ruff yet: we have not written its hand-checked card.