Skip to content
Commit 2d9eaafa authored by Christian Heimes's avatar Christian Heimes Committed by Łukasz Langa
Browse files

Output something when no files are reformatted (#190)



Just executing ``black`` without any argument does not print any message
to stdout or stderr. It's rather confusing, because the user doesn't
know what happened.

In ``len(sources) == 0`` case, black now prints ``No paths given. Nothing to
do``.

Signed-off-by: default avatarChristian Heimes <christian@python.org>
parent 8325f893
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment