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 7317a37
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/black/__init__.py
Original file line number Diff line number Diff line change
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).resolve().relative_to(root)) for source in src
)
out(f'Sources to be formatted: "{paths}"', fg="blue")

Expand Down

0 comments on commit 7317a37

Please sign in to comment.