Ruff

A very fast Python linter and formatter: ruff check finds likely mistakes and ruff format lays out code in the Black style.

In more detail

It combines checks from many older tools, such as unused imports, undefined names and style problems, and can fix many of them with --fix. It is installed with pip or pipx and configured in pyproject.toml.

Example

ruff check .
ruff format .

Related terms

Taught in

References