Skip to content

Commit

Permalink
[pre-commit.ci] pre-commit autoupdate (#223)
Browse files Browse the repository at this point in the history
* [pre-commit.ci] pre-commit autoupdate

updates:
- [github.com/charliermarsh/ruff-pre-commit: v0.0.238 → v0.0.243](astral-sh/ruff-pre-commit@v0.0.238...v0.0.243)
- [github.com/psf/black: 22.12.0 → 23.1.0](psf/black@22.12.0...23.1.0)

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
pre-commit-ci[bot] committed Feb 7, 2023
1 parent a807440 commit 20d2b85
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ repos:
- --py37-plus

- repo: https://github.com/charliermarsh/ruff-pre-commit
rev: v0.0.238
rev: v0.0.243
hooks:
- id: ruff

Expand All @@ -38,7 +38,7 @@ repos:
- --py36-plus

- repo: https://github.com/psf/black
rev: "22.12.0"
rev: "23.1.0"
hooks:
- id: black

Expand Down
2 changes: 1 addition & 1 deletion autoflake.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ def duplicate_key_line_numbers(messages, source):

lines = source.split("\n")

for (key, messages) in key_to_messages.items():
for key, messages in key_to_messages.items():
good = True
for message in messages:
line = lines[message.lineno - 1]
Expand Down
2 changes: 0 additions & 2 deletions test_autoflake.py
Original file line number Diff line number Diff line change
Expand Up @@ -2360,15 +2360,13 @@ def test_ignore_hidden_directories(self):
prefix=".",
directory=directory,
) as inner_directory:

with temporary_file(
"""\
import re
import os
""",
directory=inner_directory,
):

output_file = io.StringIO()
autoflake._main(
argv=[
Expand Down

0 comments on commit 20d2b85

Please sign in to comment.