Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[pre-commit.ci] pre-commit autoupdate #223

Merged
merged 2 commits into from
Feb 7, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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