Skip to content

Commit

Permalink
Call resolve to remove relative paths when getting SRCs log
Browse files Browse the repository at this point in the history
  • Loading branch information
Shivansh-007 committed Dec 15, 2021
1 parent 4a81c23 commit b31a26e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/black/__init__.py
Expand Up @@ -531,7 +531,7 @@ def get_sources(
else:
out(f"Identified `{root}` as project root.", fg="blue")
paths = '", "'.join(
str(Path(source).absolute().relative_to(root)) for source in src
str(Path(source).absolute().resolve().relative_to(root)) for source in src
)
out(f'Sources to be formatted: "{paths}"', fg="blue")

Expand Down

0 comments on commit b31a26e

Please sign in to comment.