From 4ad3166a3ff363c62f693d7792e025e9ffaf5a52 Mon Sep 17 00:00:00 2001 From: Auguste Lalande Date: Wed, 20 Mar 2024 22:39:37 -0400 Subject: [PATCH] Update number of implemented rules to "over 800" (#10500) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## Summary Ruff now implements over 800 rules. Congrats everyone 🎉 819 by my count --- README.md | 4 ++-- docs/faq.md | 4 ++-- docs/tutorial.md | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 2bb38e7b8b..4d9ee3f84c 100644 --- a/README.md +++ b/README.md @@ -32,7 +32,7 @@ An extremely fast Python linter and code formatter, written in Rust. - ⚖️ Drop-in parity with [Flake8](https://docs.astral.sh/ruff/faq/#how-does-ruff-compare-to-flake8), isort, and Black - 📦 Built-in caching, to avoid re-analyzing unchanged files - 🔧 Fix support, for automatic error correction (e.g., automatically remove unused imports) -- 📏 Over [700 built-in rules](https://docs.astral.sh/ruff/rules/), with native re-implementations +- 📏 Over [800 built-in rules](https://docs.astral.sh/ruff/rules/), with native re-implementations of popular Flake8 plugins, like flake8-bugbear - ⌨️ First-party [editor integrations](https://docs.astral.sh/ruff/integrations/) for [VS Code](https://github.com/astral-sh/ruff-vscode) and [more](https://github.com/astral-sh/ruff-lsp) @@ -272,7 +272,7 @@ for more on the linting and formatting commands, respectively. -**Ruff supports over 700 lint rules**, many of which are inspired by popular tools like Flake8, +**Ruff supports over 800 lint rules**, many of which are inspired by popular tools like Flake8, isort, pyupgrade, and others. Regardless of the rule's origin, Ruff re-implements every rule in Rust as a first-party feature. diff --git a/docs/faq.md b/docs/faq.md index 5d62ec4f95..6311dddfdc 100644 --- a/docs/faq.md +++ b/docs/faq.md @@ -114,8 +114,8 @@ There are a few other minor incompatibilities between Ruff and the originating F ## How does Ruff's linter compare to Pylint? -At time of writing, Pylint implements ~409 total rules, while Ruff implements over 700, of which at -least 172 overlap with the Pylint rule set (see: [#970](https://github.com/astral-sh/ruff/issues/970)). +At time of writing, Pylint implements ~409 total rules, while Ruff implements over 800, of which at +least 209 overlap with the Pylint rule set (see: [#970](https://github.com/astral-sh/ruff/issues/970)). Pylint implements many rules that Ruff does not, and vice versa. For example, Pylint does more type inference than Ruff (e.g., Pylint can validate the number of arguments in a function call). As such, diff --git a/docs/tutorial.md b/docs/tutorial.md index cb7139d473..ccb4e05b13 100644 --- a/docs/tutorial.md +++ b/docs/tutorial.md @@ -180,7 +180,7 @@ specifically, we'll want to make note of the minimum supported Python version: ### Rule Selection -Ruff supports [over 700 lint rules](rules.md) split across over 50 built-in plugins, but +Ruff supports [over 800 lint rules](rules.md) split across over 50 built-in plugins, but determining the right set of rules will depend on your project's needs: some rules may be too strict, some are framework-specific, and so on.