From bbc529bc8a01d9423d17e863cff19eb410f05a19 Mon Sep 17 00:00:00 2001 From: Tobias Hernstig <30827238+thernstig@users.noreply.github.com> Date: Thu, 30 Apr 2026 11:08:53 +0200 Subject: [PATCH] docs: Use correct number of lint rules supported (#24942) --- README.md | 2 +- docs/faq.md | 2 +- docs/tutorial.md | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 847ed8894f..db1ac1fa06 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-ruffs-linter-compare-to-flake8), isort, and [Black](https://docs.astral.sh/ruff/faq/#how-does-ruffs-formatter-compare-to-black) - 📦 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](https://docs.astral.sh/ruff/rules/), with native re-implementations +- 📏 Over [900 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/editors) for [VS Code](https://github.com/astral-sh/ruff-vscode) and [more](https://docs.astral.sh/ruff/editors/setup) - 🌎 Monorepo-friendly, with [hierarchical and cascading configuration](https://docs.astral.sh/ruff/configuration/#config-file-discovery) diff --git a/docs/faq.md b/docs/faq.md index 138bc87901..01d0d36bac 100644 --- a/docs/faq.md +++ b/docs/faq.md @@ -107,7 +107,7 @@ One minor difference is that Ruff doesn't include all the 'opinionated' rules fr ## How does Ruff's linter compare to Pylint? -At time of writing, Pylint implements ~409 total rules, while Ruff implements over 800, of which at +At time of writing, Pylint implements ~409 total rules, while Ruff implements over 900, 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 diff --git a/docs/tutorial.md b/docs/tutorial.md index 697f070e86..d296f1a3f2 100644 --- a/docs/tutorial.md +++ b/docs/tutorial.md @@ -197,7 +197,7 @@ specifically, we'll want to make note of the minimum supported Python version: ### Rule Selection -Ruff supports [over 800 lint rules](rules.md) split across over 50 built-in plugins, but +Ruff supports [over 900 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.