Skip to content

Commit 60ec7c5

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 672eaff commit 60ec7c5

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

codespell_lib/_codespell.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,9 @@
6161
r"(\b(?:https?|[ts]?ftp|file|git|smb)://[^\s]+(?=$|\s)|\b[\w.%+-]+@[\w.-]+\b)"
6262
)
6363
codespell_ignore_tag = "codespell:ignore"
64-
inline_ignore_regex = re.compile(rf"[^\w\s]\s*{codespell_ignore_tag}\b(\s+(?P<words>[\w,]*))?")
64+
inline_ignore_regex = re.compile(
65+
rf"[^\w\s]\s*{codespell_ignore_tag}\b(\s+(?P<words>[\w,]*))?"
66+
)
6567
USAGE = """
6668
\t%prog [OPTIONS] [file1 file2 ... fileN]
6769
"""
@@ -951,7 +953,9 @@ def parse_file(
951953
continue
952954

953955
extra_words_to_ignore = set()
954-
match = inline_ignore_regex.search(line) if codespell_ignore_tag in line else None
956+
match = (
957+
inline_ignore_regex.search(line) if codespell_ignore_tag in line else None
958+
)
955959
if match:
956960
extra_words_to_ignore = set(
957961
filter(None, (match.group("words") or "").split(","))

0 commit comments

Comments
 (0)