Reformat after updating pre-commit config
diff --git a/autoflake.py b/autoflake.py
index 16b5d79..0581d40 100755
--- a/autoflake.py
+++ b/autoflake.py
@@ -20,7 +20,6 @@
# TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
# SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
"""Removes unused imports and unused variables as reported by pyflakes."""
-
from __future__ import annotations
import ast
@@ -576,7 +575,8 @@
undefined_names: list[str] = []
if expand_star_imports and not (
# See explanations in #18.
- re.search(r"\b__all__\b", source) or re.search(r"\bdel\b", source)
+ re.search(r"\b__all__\b", source)
+ or re.search(r"\bdel\b", source)
):
marked_star_import_line_numbers = frozenset(
star_import_used_line_numbers(messages),
@@ -1515,9 +1515,8 @@
if not success:
return 1
- if (
- args["remove_rhs_for_unused_variables"]
- and not (args["remove_unused_variables"])
+ if args["remove_rhs_for_unused_variables"] and not (
+ args["remove_unused_variables"]
):
_LOGGER.error(
"Using --remove-rhs-for-unused-variables only makes sense when "
diff --git a/test_autoflake.py b/test_autoflake.py
index 05706e3..504b035 100755
--- a/test_autoflake.py
+++ b/test_autoflake.py
@@ -1,6 +1,5 @@
#!/usr/bin/env python
"""Test suite for autoflake."""
-
from __future__ import annotations
import contextlib
diff --git a/test_fuzz.py b/test_fuzz.py
index 8340f2c..2668b93 100755
--- a/test_fuzz.py
+++ b/test_fuzz.py
@@ -5,7 +5,6 @@
done by doing a syntax check after the autoflake run. The number of
Pyflakes warnings is also confirmed to always improve.
"""
-
from __future__ import annotations
import argparse