Correct some oversites in the documentation from #10756 (#10796)

## Summary

Correct some oversites in the documentation from #10756
This commit is contained in:
Auguste Lalande 2024-04-05 18:45:48 -04:00 committed by GitHub
parent a184dc68f5
commit 1b31d4e9f1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 4 deletions

View File

@ -130,11 +130,11 @@ Like Flake8, Pylint supports plugins (called "checkers"), while Ruff implements
and does not support custom or third-party rules. Unlike Pylint, Ruff is capable of automatically and does not support custom or third-party rules. Unlike Pylint, Ruff is capable of automatically
fixing its own lint violations. fixing its own lint violations.
In some cases, Ruff's rules may yield slightly different rules than their Pylint counterparts. For In some cases, Ruff's rules may yield slightly different results than their Pylint counterparts. For
example, Ruff's [`too-many-branches`](rules/too-many-branches.md) does not count `try` blocks as example, Ruff's [`too-many-branches`](rules/too-many-branches.md) does not count `try` blocks as
their own branches, unlike Pylint's `R0912`. Ruff's `PY` rule group also includes a small number of their own branches, unlike Pylint's `R0912`. Ruff's `PL` rule group also includes a small number of
rules from Pylint _extensions_ (like [`magic-value-comparison`](https://docs.astral.sh/ruff/rules/magic-value-comparison/)), rules from Pylint _extensions_ (like [`magic-value-comparison`](rules/magic-value-comparison.md)),
which need to be explicitly activated when using Pylint. By enabling Ruff's `PY` group, you may which need to be explicitly activated when using Pylint. By enabling Ruff's `PL` group, you may
see violations for rules that weren't previously enabled through your Pylint configuration. see violations for rules that weren't previously enabled through your Pylint configuration.
Pylint parity is being tracked in [#970](https://github.com/astral-sh/ruff/issues/970). Pylint parity is being tracked in [#970](https://github.com/astral-sh/ruff/issues/970).