Skip to content

Commit

Permalink
Update __init__.py
Browse files Browse the repository at this point in the history
  • Loading branch information
MeGaGiGaGon authored Dec 24, 2024
1 parent d454f77 commit 93c0d7a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/black/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -748,13 +748,13 @@ def get_sources(

for s in src:
if s == "-" and stdin_filename:
path = Path(stdin_filename)
if path_is_excluded(stdin_filename, force_exclude):
report.path_ignored(
stdin_filename,
path,
"--stdin-filename matches the --force-exclude regular expression",
)
continue
path = Path(stdin_filename)
is_stdin = True
else:
path = Path(s)
Expand Down

0 comments on commit 93c0d7a

Please sign in to comment.