Ruff

Ruff is an extremely fast Python linter and code formatter written in Rust.

The main advantage of Ruff is its speed. Ruff is 10-100 times faster than its alternatives. Compared to flake8, the author claims almost complete compatibility with the tool's ruleset and native implementation of popular plugins (flake8-bugbear, etc.). Ruff is also compatible with Black "out of the box."

Ruff can format code. For example, it automatically removes unused imports. As for sorting and grouping import statements, it's practically identical to isort.

Comments (0)

Leave a comment