Ruff icon
Ruff icon

Ruff

An extremely fast Python linter, written in Rust.

Ruff screenshot 1

Cost / License

  • Free
  • Open Source (MIT)

Platforms

  • Mac
  • Windows
  • Linux
  • BSD
  • Python
Save

Features

Highlights All activities

Ruff News & Activities

Recent News

Recent activities

  • ty icon
    Paul added Ruff as alternative to ty
  • Pyrefly icon
    Paul added Ruff as alternative to Pyrefly

No comments or reviews, maybe you want to be first?

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

  •  49,929 Stars
  •  2,478 Forks
  •  2209 Open Issues
  •   Updated  
View on GitHub

Popular alternatives

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