Ruff icon
Ruff icon

Ruff

 2 likes

An extremely fast Python linter, written in Rust.

Ruff screenshot 1

Cost / License

  • Free
  • Open Source (MIT)

Since

  • Since 2023 (updated Nov 2026)

Releases

  • 48 releases last year48 last year

GitHub

  • GitHub stars: 51.5k

Platforms

  • Windows
  • Mac
  • Linux
  • BSD
  • Python
Save

Features

Highlights All activities

Ruff News & Activities

Recent News

Recent activities

  • Hamze Zare commented on Ruff

    We run ruff check in CI on our FastAPI backends, and it is fast enough that the lint step is never the slow part. One thing that bit us: Alembic's autogenerated migrations are not formatted, so about ten migrations in a row piled up long lines and unsorted imports and CI went red on the lint step before tests even ran. ruff check --fix sorted the imports, the long lines we reflowed by hand. Worth adding ruff to Alembic's post_write_hooks, or excluding the versions folder, before that happens to...

  • Hamze Zare liked Ruff
  • ty icon
    Paul added Ruff as alternative to ty

Comments and Reviews

   
Hamze Zare
0
Founder at fanpino

We run ruff check in CI on our FastAPI backends, and it is fast enough that the lint step is never the slow part. One thing that bit us: Alembic's autogenerated migrations are not formatted, so about ten migrations in a row piled up long lines and unsorted imports and CI went red on the lint step before tests even ran. ruff check --fix sorted the imports, the long lines we reflowed by hand. Worth adding ruff to Alembic's post_write_hooks, or excluding the versions folder, before that happens to you.

Official Links

Install from the command line

  • winget install -e --id astral-sh.ruff
  • brew install ruff

Be careful what you paste into a terminal. Check what a command installs before running it.

What is Ruff?

An extremely fast Python linter, written in Rust.

  • 10-100x faster than existing linters
  • Installable via pip
  • pyproject.toml support
  • Python 3.11 compatibility
  • Built-in caching, to avoid re-analyzing unchanged files
  • Autofix support, for automatic error correction (e.g., automatically remove unused imports)
  • Over 500 built-in rules
  • Near-parity with the built-in Flake8 rule set
  • Native re-implementations of dozens of Flake8 plugins, like flake8-bugbear
  • First-party editor integrations for VS Code and more
  • Monorepo-friendly, with hierarchical and cascading configuration

Ruff aims to be orders of magnitude faster than alternative tools while integrating more functionality behind a single, common interface.

Ruff can be used to replace Flake8 (plus dozens of plugins), isort, pydocstyle, yesqa, eradicate, pyupgrade, and autoflake, all while executing tens or hundreds of times faster than any individual tool.

Ruff information

AlternativeTo Category

Development

GitHub repository

  •  51,511 Stars
  •  2,778 Forks
  •  2,334 Open Issues
  •   Updated  
View on GitHub

Popular alternatives

View all

Our users have written 1 comment or review about Ruff, and it has gotten 2 likes.

Ruff was added to AlternativeTo by Paul on and this page was last updated .