Ruff
An extremely fast Python linter and code formatter, written in Rust. observed · 2026-08-28
Health v2 · maintenance only
95/100
- Activity 99
- Release rhythm 86
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: 7
- age_days: 1485
- days_rel: 13
- days_push: 7
- n_releases_24m: 102
Adoption not part of the score
49343 stars · 2363 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded
Ruff is an extremely fast Python linter and code formatter written in Rust, offering over 900 built-in rules and drop-in parity with tools like Flake8, Black, isort, and pyupgrade. It ships as a CLI with built-in caching, auto-fix support, a Language Server for editor integration, and pre-commit/CI integrations.
Use cases
- lint python code for style and errors
- format python code like black
- replace flake8 with a faster linter
- sort and organize python imports
- auto-fix unused imports and lint violations
- enforce code style in CI pipelines
- lint python in vscode in real time
- set up pre-commit hooks for python linting
When to choose
- you need a fast, single-tool replacement for flake8, black, isort, and pyupgrade
- you want linting and formatting with auto-fix in one tool
- you work on large codebases or monorepos where lint speed matters
- you want editor diagnostics via LSP or VS Code extension
When to avoid
- you rely on flake8 plugins not yet reimplemented in ruff
- you need linting for languages other than python
- you require exact byte-for-byte black output on non-black-formatted code
Facets
cli-tool · maturity stable
linter formatter static-site-generator developer-tools developer-tools testing python rust windows cli editor-plugin flake8-replacement black-replacement isort pyupgrade pep8 code-style language-server-protocol vscode-extension pre-commit ci-cd python command-line linux macos docker
9 sources
- readme: https://github.com/astral-sh/ruff · fetched 2026-08-28 · 09d7e29687cb
- homepage: https://docs.astral.sh/ruff · fetched 2026-08-28 · 52e584d776a2
- site_page: https://docs.astral.sh/ruff/installation/ · fetched 2026-08-28 · d36470f3caee
- site_page: https://docs.astral.sh/ruff/editors/features/ · fetched 2026-08-28 · 8cb287137383
- site_page: https://docs.astral.sh/ruff/integrations/ · fetched 2026-08-28 · ffa59bbe3311
- site_page: https://docs.astral.sh/ruff/faq/ · fetched 2026-08-28 · 698789f7f264
- site_page: https://docs.astral.sh/ruff/editors/ · fetched 2026-08-28 · 3f0aa84e1d56
- registry_pypi: https://pypi.org/pypi/ruff-lsp/json · fetched 2026-08-28 · 4d9109d7a55f
- registry_crates: https://crates.io/api/v1/crates/ruff · fetched 2026-08-28 · 1d2310b0f5e8
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| astral-sh/ruff | main | 95 |
| astral-sh/ruff-pre-commit | plugin | 95 |
| astral-sh/ruff-vscode | plugin | 99 |
| astral-sh/ruff-lsp | plugin | 10 |
For agents
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem