Skip to content

Commit 3c203aa

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent c40552e commit 3c203aa

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

mypy/modulefinder.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -688,14 +688,17 @@ def matches_exclude(
688688
if re.search(exclude, subpath_str):
689689
if verbose:
690690
print(
691-
f"TRACE: Excluding {subpath_str} (matches pattern {exclude})", file=sys.stderr
691+
f"TRACE: Excluding {subpath_str} (matches pattern {exclude})",
692+
file=sys.stderr,
692693
)
693694
return True
694695
except re.error as e:
695696
print(f"error: The exclude {exclude} is an invalid regular expression, because:", e)
696-
if '\\' in exclude:
697+
if "\\" in exclude:
697698
print("(Hint: use / as a path separator, even if you're on Windows!)")
698-
print("For more information on Python's flavor of regex, see: https://docs.python.org/3/library/re.html")
699+
print(
700+
"For more information on Python's flavor of regex, see: https://docs.python.org/3/library/re.html"
701+
)
699702
sys.exit(2)
700703
return False
701704

0 commit comments

Comments
 (0)