Ruff

Lint at lightspeed

An extremely fast Python linter, written in Rust.

Background pattern

Linting the CPython codebase, from scratch.

  • Ruff

    s
  • Autoflake

    s
  • Flake8

    s
  • Pyflakes

    s
  • pycodestyle

    s
  • Pylint

    s
Trusted across open source
PandasHugging FaceFastAPIAirflowElementlSciPyMozillaSnowflake
PandasHugging FaceFastAPIAirflowElementlSciPyMozillaSnowflake

An ambitious tool for ambitious projects

Ruff is a high-performance Python linter that lets you ship faster. Replace dozens of dependencies with a single tool — that runs in a fraction of the time.

  • "Shockingly fast"

    Ruff is 10-100x faster than existing tools, enabling sub-second feedback loops on even the largest codebases.

  • All-in-one

    Replace dozens of tools with a single, unified interface. Ruff supports over 500 rules and maintains drop-in compatibility with Flake8, isort, and more.

  • Automated

    Automatically upgrade to newer Python syntax, organize imports, remove unused variables, and more with Ruff’s powerful autofix model.

Tried and tested.
Powering impactful projects across open source.

Ruff is so fast that sometimes I add an intentional bug in the code just to confirm it's actually running.

Sebastián Ramírez
Sebastián Ramírez

Creator of FastAPI

Why is Ruff a gamechanger? Primarily because it’s nearly 1000x faster. Literally. Not a typo.

Nick Schrock
Nick Schrock

Founder of Elementl, co-creator of GraphQL

Just switched my first project to Ruff. Only one downside so far: it's so fast I couldn't believe it was working until I intentionally introduced some errors.

Timothy Crosley
Timothy Crosley

Software Engineer at Stripe, Creator of isort

Ruff is so fast that sometimes I add an intentional bug in the code just to confirm it's actually running.

Sebastián Ramírez
Sebastián Ramírez

Creator of FastAPI

Why is Ruff a gamechanger? Primarily because it’s nearly 1000x faster. Literally. Not a typo.

Nick Schrock
Nick Schrock

Founder of Elementl, co-creator of GraphQL

Just switched my first project to Ruff. Only one downside so far: it's so fast I couldn't believe it was working until I intentionally introduced some errors.

Timothy Crosley
Timothy Crosley

Software Engineer at Stripe, Creator of isort

Ruff is so fast that sometimes I add an intentional bug in the code just to confirm it's actually running.

Sebastián Ramírez
Sebastián Ramírez

Creator of FastAPI

Why is Ruff a gamechanger? Primarily because it’s nearly 1000x faster. Literally. Not a typo.

Nick Schrock
Nick Schrock

Founder of Elementl, co-creator of GraphQL

Just switched my first project to Ruff. Only one downside so far: it's so fast I couldn't believe it was working until I intentionally introduced some errors.

Timothy Crosley
Timothy Crosley

Software Engineer at Stripe, Creator of isort

Ruff is so fast that sometimes I add an intentional bug in the code just to confirm it's actually running.

Sebastián Ramírez
Sebastián Ramírez

Creator of FastAPI

Why is Ruff a gamechanger? Primarily because it’s nearly 1000x faster. Literally. Not a typo.

Nick Schrock
Nick Schrock

Founder of Elementl, co-creator of GraphQL

Just switched my first project to Ruff. Only one downside so far: it's so fast I couldn't believe it was working until I intentionally introduced some errors.

Timothy Crosley
Timothy Crosley

Software Engineer at Stripe, Creator of isort

Background pattern

Supercharge your Python tooling

Background pattern

© 2024 Astral Software Inc.