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

Handle multiline options #3400

Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Apr 10, 2024
commit a49d77aba44231bb5de999169ca598af490ccd87
5 changes: 1 addition & 4 deletions codespell_lib/_codespell.py
Original file line number Diff line number Diff line change
Expand Up @@ -489,7 +489,7 @@
"accepts globs as well. E.g.: if you want "
"codespell to skip .eps and .txt files, "
'you\'d give "*.eps,*.txt" to this option.',
default=list(),

Check failure on line 492 in codespell_lib/_codespell.py

View workflow job for this annotation

GitHub Actions / 3.8

Ruff (C408)

codespell_lib/_codespell.py:492:17: C408 Unnecessary `list` call (rewrite as a literal)

Check failure on line 492 in codespell_lib/_codespell.py

View workflow job for this annotation

GitHub Actions / 3.9

Ruff (C408)

codespell_lib/_codespell.py:492:17: C408 Unnecessary `list` call (rewrite as a literal)

Check failure on line 492 in codespell_lib/_codespell.py

View workflow job for this annotation

GitHub Actions / 3.10

Ruff (C408)

codespell_lib/_codespell.py:492:17: C408 Unnecessary `list` call (rewrite as a literal)

Check failure on line 492 in codespell_lib/_codespell.py

View workflow job for this annotation

GitHub Actions / 3.11

Ruff (C408)

codespell_lib/_codespell.py:492:17: C408 Unnecessary `list` call (rewrite as a literal)

Check failure on line 492 in codespell_lib/_codespell.py

View workflow job for this annotation

GitHub Actions / 3.12

Ruff (C408)

codespell_lib/_codespell.py:492:17: C408 Unnecessary `list` call (rewrite as a literal)

Check failure on line 492 in codespell_lib/_codespell.py

View workflow job for this annotation

GitHub Actions / 3.10 no-toml

Ruff (C408)

codespell_lib/_codespell.py:492:17: C408 Unnecessary `list` call (rewrite as a literal)
DimitriPapadopoulos marked this conversation as resolved.
Show resolved Hide resolved
)

parser.add_argument(
Expand Down Expand Up @@ -1112,10 +1112,7 @@
[]
"""
return [
item.strip()
for argument in arguments
for item in argument.split(",")
if item
item.strip() for argument in arguments for item in argument.split(",") if item
]


Expand Down
Loading