---
title: "Ruff: Python linter and formatter written in Rust"
description: "Ruff (2022) by Charlie Marsh and Astral: Python linter and formatter in Rust, 10-100x faster than flake8 + black + isort + pylint combined. Replaces entire Python dev tooling stack with a single binary."
url: "https://www.noze.it/en/insights/ruff-astral/"
lang: "en"
alternate: "https://www.noze.it/insights/ruff-astral/"
published: "2022-08-30"
author: "noze S.r.l."
keywords: "Open Source, R&D, Ruff, Astral, Charlie Marsh, Python, Rust, Linter, Formatter"
---

# Ruff: Python linter and formatter written in Rust

Ruff (2022) by Charlie Marsh and Astral: Python linter and formatter in Rust, 10-100x faster than flake8 + black + isort + pylint combined. Replaces entire Python dev tooling stack with a single binary.

30 August 2022

## Slow Python dev tooling

The traditional Python dev tooling stack includes: **flake8** (lint), **pylint** (deeper lint), **black** (format), **isort** (import sorting), **pyupgrade** (modernisation). Each is a separate Python tool, slow on large codebases (minutes on big projects).

**Ruff**, created by **Charlie Marsh** and the company **Astral** (founded 2022) in New York, rewrites these in **Rust**. Result: a single binary doing it all, **10-100x faster**. **MIT** licence.

The **first public release is August 2022**; Ruff is already being rapidly adopted in mainstream Python projects (Pandas, FastAPI, Django, Airflow, Hugging Face, Pydantic itself).

## What Ruff does

- **800+ linting rules**, compatible with flake8 + plugins (pycodestyle, pyflakes, McCabe, isort, pydocstyle, pylint subset, pyupgrade, bandit, …)
- **Auto-fix** for \~50% of rules
- **Import sorting** (replaces isort)
- **Performance**: 10-100x vs. traditional stack

## Usage

```
ruff check src/
ruff format src/
```

`pyproject.toml` config:

```
[tool.ruff]
line-length = 100
select = ["E", "F", "I", "N", "UP", "B"]
ignore = ["E501"]
```

## Astral and the strategy

**Astral** (the company) is founded in 2022 to build a Python-tool-in-Rust ecosystem, starting with **Ruff** as linter. Model: Open Source (all tools) + business model to be defined (hosted services, enterprise support).

## In the Italian context

Adoption has started rapidly in Italian Python teams: startups, digital agencies, enterprise teams with slow CI pipelines. Migration from flake8 often completed in one afternoon.

Update — 2024

With Ruff **0.1** (August 2023) comes the **formatter** as a drop-in _black_ replacement. Astral grows the ecosystem with **uv** (2024, package manager/installer replacing pip/virtualenv with 10-100x performance) and **ty** (2024, announced type checker, alternative to pyright/mypy). From **2023** Ruff becomes the de facto standard in numerous mainstream Python projects; in Italian Python teams adoption is rapid and widespread.

---

_References: Ruff (August 2022). Charlie Marsh, Astral. MIT licence. Implementation language: Rust. Drop-in replacement for flake8 + black + isort + pyupgrade + others. Pyproject.toml config._
