
Ruff Has a Free API — The Python Linter That's 100x Faster Than Flake8
TL;DR Ruff is a Python linter and formatter written in Rust that replaces Flake8, isort, Black, pyupgrade, and dozens more tools — all in one binary. It's 10-100x faster and supports 800+ lint rules. What Is Ruff? Ruff by Astral is the new standard for Python tooling: 100x faster — written in Rust, lints in milliseconds Drop-in replacement — for Flake8, isort, Black, pyupgrade, pydocstyle 800+ rules — the most comprehensive Python linter Auto-fix — automatically fixes most issues Built-in formatter — Black-compatible, 100x faster Free — MIT license Quick Start # Install pip install ruff # Lint ruff check . # Lint and auto-fix ruff check --fix . # Format (like Black, but faster) ruff format . Configuration # pyproject.toml [tool.ruff] target-version = "py312" line-length = 88 [tool.ruff.lint] select = [ "E" , # pycodestyle errors "W" , # pycodestyle warnings "F" , # pyflakes "I" , # isort "N" , # pep8-naming "UP" , # pyupgrade "B" , # flake8-bugbear "SIM" , # flake8-simplify "C4" , # fl
Continue reading on Dev.to Python
Opens in a new tab


