Get the latest tech news

Ruff: Python linter and code formatter written in Rust


An extremely fast Python linter and code formatter, written in Rust. - astral-sh/ruff

โšก๏ธ 10-100x faster than existing linters (like Flake8) and formatters (like Black) ๐Ÿ Installable via pip ๐Ÿ› ๏ธ pyproject.toml support ๐Ÿค Python 3.13 compatibility โš–๏ธ Drop-in parity with , isort, and ๐Ÿ“ฆ Built-in caching, to avoid re-analyzing unchanged files ๐Ÿ”ง Fix support, for automatic error correction (e.g., automatically remove unused imports) ๐Ÿ“ Over 800 built-in rules, with native re-implementations of popular Flake8 plugins, like flake8-bugbear โŒจ๏ธ First-party editor integrations for VS Code and more ๐ŸŒŽ Monorepo-friendly, with hierarchical and cascading configuration Ruff aims to be orders of magnitude faster than alternative tools while integrating more functionality behind a single, common interface. Some configuration options can be provided via dedicated command-line arguments, such as those related to rule enablement and disablement, file discovery, and logging level:

Get the Android app

Or read this on Hacker News

Read more on:

Photo of Code

Code

Photo of Rust

Rust

Photo of ruff

ruff

Related news:

News photo

Rhai: An embedded scripting language for Rust

News photo

Rust: Investigating an Out of Memory Error

News photo

Yek: Serialize your code repo (or part of it) to feed into any LLM