Skip to content

Commit

Permalink
reformat
Browse files Browse the repository at this point in the history
  • Loading branch information
JelleZijlstra committed Dec 18, 2022
1 parent 89b065c commit d876179
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions src/black/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -478,16 +478,20 @@ def main( # noqa: C901
)

normalized = [
(source, source)
if source == "-"
else (normalize_path_maybe_ignore(Path(source), root), source)
(
(source, source)
if source == "-"
else (normalize_path_maybe_ignore(Path(source), root), source)
)
for source in src
]
srcs_string = ", ".join(
[
f'"{_norm}"'
if _norm
else f'\033[31m"{source} (skipping - invalid)"\033[34m'
(
f'"{_norm}"'
if _norm
else f'\033[31m"{source} (skipping - invalid)"\033[34m'
)
for _norm, source in normalized
]
)
Expand Down

0 comments on commit d876179

Please sign in to comment.