Skip to content

Commit

Permalink
Reformat after updating pre-commit config
Browse files Browse the repository at this point in the history
  • Loading branch information
fsouza committed Mar 13, 2024
1 parent cda2f91 commit b58a71a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 7 deletions.
9 changes: 4 additions & 5 deletions autoflake.py
Expand Up @@ -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
Expand Down Expand Up @@ -576,7 +575,8 @@ def filter_code(
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),
Expand Down Expand Up @@ -1515,9 +1515,8 @@ def _main(
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 "
Expand Down
1 change: 0 additions & 1 deletion test_autoflake.py
@@ -1,6 +1,5 @@
#!/usr/bin/env python
"""Test suite for autoflake."""

from __future__ import annotations

import contextlib
Expand Down
1 change: 0 additions & 1 deletion test_fuzz.py
Expand Up @@ -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
Expand Down

0 comments on commit b58a71a

Please sign in to comment.