ruff
by
astral-sh

Description: An extremely fast Python linter and code formatter, written in Rust.

View on GitHub ↗

Summary Information

Updated 2 hours ago
Added to GitGenius on February 12th, 2025
Created on August 9th, 2022
Open Issues & Pull Requests: 2,034 (+0)
Number of forks: 2,227
Total Stargazers: 48,497 (+3)
Total Subscribers: 108 (+0)

Issue Activity (beta)

Open issues: 1,444
New in 7 days: 6
Closed in 7 days: 9
Avg open age: 474 days
Stale 30+ days: 1,375
Stale 90+ days: 1,233

Recent activity

Opened in 7 days: 5
Closed in 7 days: 9
Comments in 7 days: 33
Events in 7 days: 77

Top labels

  • bug (1,290)
  • rule (1,150)
  • question (696)
  • needs-decision (495)
  • help wanted (390)
  • fixes (378)
  • ty (344)
  • formatter (241)

Repository Insights (GitGenius)

Median issue/PR response: 0.7 hours
Mean response time: 53.2 days
90th percentile: 196.2 days
Tracked items: 4,602

Most active contributors

Detailed Description

Ruff is an extremely fast Python linter and code formatter written in Rust, designed to replace multiple existing Python tooling solutions with a single unified interface. According to the README, it achieves 10-100x faster performance than existing linters like Flake8 and formatters like Black. The tool is installable via pip and supports Python 3.14, with drop-in compatibility for Flake8, isort, and Black. Ruff includes over 900 built-in rules with native re-implementations of popular Flake8 plugins such as flake8-bugbear, and it can be used to replace Flake8, Black, isort, pydocstyle, pyupgrade, autoflake, and other tools while executing tens or hundreds of times faster than any individual tool.

The repository is actively maintained by Astral, the company behind the uv package manager. According to GitGenius tracking data, the project has grown from 48,422 to 48,424 stargazers since July 2026, and it maintains a median issue and pull request response latency of 0.7 hours across 4,595 tracked items. The most active contributors tracked by GitGenius are MichaReiser with 6,341 events, ntBre with 3,407 events, and charliermarsh with 2,184 events. The most frequently used issue labels are rule with 1,101 occurrences, bug with 1,076 occurrences, and question with 642 occurrences, indicating active development and community engagement around rule implementation and bug fixes.

Ruff is used by major open-source projects including Apache Airflow, Apache Superset, FastAPI, Hugging Face, Pandas, and SciPy. The tool supports configuration through pyproject.toml, ruff.toml, or .ruff.toml files with hierarchical and cascading configuration for monorepo-friendly setups. It includes built-in caching to avoid re-analyzing unchanged files and provides automatic fix support for error correction, such as removing unused imports. First-party editor integrations are available for VS Code and other editors, and Ruff can be used as a pre-commit hook, GitHub Action, or invoked directly via uvx.

By default, Ruff enables Flake8's F rules along with a subset of E rules, omitting stylistic rules that overlap with formatters. A preview mode is available to opt into the latest lint rules, formatter style changes, and interface updates. The repository is classified across multiple domains including tooling, error detection, performance optimization, static analysis, formatting, code quality, type checking, and development efficiency. GitGenius links this repository to github/gh-aw, solo-io/gloo, and astral-sh/uv through overlapping contributors, indicating shared development patterns and community involvement across related projects.

ruff
by
astral-shastral-sh/ruff

Repository Details

Fetching additional details & charts...