Bump pyupgrade implementation count

This commit is contained in:
Charlie Marsh
2022-12-31 21:25:34 -05:00
parent 70895a8f1e
commit 8fd0d8e9d8
2 changed files with 2 additions and 15 deletions

View File

@@ -1307,7 +1307,7 @@ natively, including:
- [`pep8-naming`](https://pypi.org/project/pep8-naming/)
- [`pydocstyle`](https://pypi.org/project/pydocstyle/)
- [`pygrep-hooks`](https://github.com/pre-commit/pygrep-hooks) (3/10)
- [`pyupgrade`](https://pypi.org/project/pyupgrade/) (20/33)
- [`pyupgrade`](https://pypi.org/project/pyupgrade/) (21/33)
- [`yesqa`](https://github.com/asottile/yesqa)
Note that, in some cases, Ruff uses different error code prefixes than would be found in the
@@ -1366,7 +1366,7 @@ Today, Ruff can be used to replace Flake8 when used with any of the following pl
Ruff can also replace [`isort`](https://pypi.org/project/isort/),
[`yesqa`](https://github.com/asottile/yesqa), [`eradicate`](https://pypi.org/project/eradicate/),
[`pygrep-hooks`](https://github.com/pre-commit/pygrep-hooks) (3/10), and a subset of the rules
implemented in [`pyupgrade`](https://pypi.org/project/pyupgrade/) (20/33).
implemented in [`pyupgrade`](https://pypi.org/project/pyupgrade/) (21/33).
If you're looking to use Ruff, but rely on an unsupported Flake8 plugin, free to file an Issue.

13
foo.py
View File

@@ -1,13 +0,0 @@
if True:
from unittest import mock as foo
from unittest import mock as bar
from unittest import mock
import os
from unittest import mock as foo
from unittest import mock as bar
from unittest import mock
if True:
from unittest import mock as foo
from unittest import mock as bar
from unittest import mock