]> git.madduck.net Git - etc/vim.git/commit

madduck's git repository

Every one of the projects in this repository is available at the canonical URL git://git.madduck.net/madduck/pub/<projectpath> — see each project's metadata for the exact URL.

All patches and comments are welcome. Please squash your changes to logical commits before using git-format-patch and git-send-email to patches@git.madduck.net. If you'd read over the Git project's submission guidelines and adhered to them, I'd be especially grateful.

SSH access, as well as push access can be individually arranged.

If you use my repositories frequently, consider adding the following snippet to ~/.gitconfig and using the third clone URL listed for each project:

[url "git://git.madduck.net/madduck/"]
  insteadOf = madduck:

Output something when no files are reformatted (#190)
authorChristian Heimes <christian@python.org>
Mon, 7 May 2018 17:12:47 +0000 (19:12 +0200)
committerŁukasz Langa <lukasz@langa.pl>
Mon, 7 May 2018 17:12:47 +0000 (10:12 -0700)
commit2d9eaafa97e967c8974a6321dcc442a90192140f
tree068a1cd3327451b4f9be9e9604432ca996459a33
parent8325f893b4793e123b486e7a341188d1ab5b77d1
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: Christian Heimes <christian@python.org>
black.py
tests/test_black.py