mirror of https://github.com/astral-sh/ruff
Update number of implemented rules to "over 800" (#10500)
## Summary
Ruff now implements over 800 rules. Congrats everyone 🎉
819 by my count
This commit is contained in:
parent
9aded0284e
commit
4ad3166a3f
|
|
@ -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
|
- ⚖️ 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
|
- 📦 Built-in caching, to avoid re-analyzing unchanged files
|
||||||
- 🔧 Fix support, for automatic error correction (e.g., automatically remove unused imports)
|
- 🔧 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
|
of popular Flake8 plugins, like flake8-bugbear
|
||||||
- ⌨️ First-party [editor integrations](https://docs.astral.sh/ruff/integrations/) for
|
- ⌨️ 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)
|
[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.
|
||||||
|
|
||||||
<!-- Begin section: Rules -->
|
<!-- Begin section: Rules -->
|
||||||
|
|
||||||
**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
|
isort, pyupgrade, and others. Regardless of the rule's origin, Ruff re-implements every rule in
|
||||||
Rust as a first-party feature.
|
Rust as a first-party feature.
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -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?
|
## 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
|
At time of writing, Pylint implements ~409 total rules, while Ruff implements over 800, of which at
|
||||||
least 172 overlap with the Pylint rule set (see: [#970](https://github.com/astral-sh/ruff/issues/970)).
|
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
|
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,
|
inference than Ruff (e.g., Pylint can validate the number of arguments in a function call). As such,
|
||||||
|
|
|
||||||
|
|
@ -180,7 +180,7 @@ specifically, we'll want to make note of the minimum supported Python version:
|
||||||
|
|
||||||
### Rule Selection
|
### 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
|
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.
|
strict, some are framework-specific, and so on.
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue