mirror of
https://github.com/astral-sh/ruff.git
synced 2026-05-06 08:56:57 -04:00
docs: Use correct number of lint rules supported (#24942)
This commit is contained in:
@@ -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)
|
||||
|
||||
+1
-1
@@ -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
|
||||
|
||||
+1
-1
@@ -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.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user