Home > Software > Development > Python > Ruff - The Fast Python Linter

Ruff - The Fast Python Linter logo

Details

Package ID
ruff
Version
0.16.10
Downloads
27976
Website
https://beta.ruff.rs/

Summary

An extremely fast Python linter, written in Rust.

Description

Ruff image image image Actions status

Discord | Docs | Playground

An extremely fast Python linter, written in Rust.

Graph Linting the CPython codebase from scratch.

  • ⚑️ 10-100x faster than existing linters
  • 🐍 Installable via pip
  • πŸ› οΈ pyproject.toml support
  • 🀝 Python 3.12 compatibility
  • βš–οΈ Drop-in parity with Flake8, isort, and Black
  • πŸ“¦ Built-in caching, to avoid re-analyzing unchanged files
  • πŸ”§ Autofix support, for automatic error correction (e.g., automatically remove unused imports)
  • πŸ“ Over 700 built-in rules, with native re-implementations of popular Flake8 plugins, like flake8-bugbear
  • βš–οΈ Near-parity with the built-in Flake8 rule set
  • ⌨️ 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 is extremely actively developed and used in major open-source projects like:

…and many more.

Read the launch blog post or the most recent project update.

Ruff is backed by Astral. Read the launch post, or the original project announcement.

Comments

Loading comments...