]> 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:

Only use trailing commas in function signatures when it's safe
authorŁukasz Langa <lukasz@langa.pl>
Fri, 16 Mar 2018 02:25:23 +0000 (19:25 -0700)
committerLukasz Langa <ambv@fb.com>
Fri, 16 Mar 2018 02:44:09 +0000 (19:44 -0700)
commit5fb5cc8c2bd5a0bb1359fb69cdb705b55afade52
treee978b7a5912a1b1bf1e639dc81b7d5ec0e895069
parentc26daa4fd50e2db13f38279ce27b51b0ae4479fe
Only use trailing commas in function signatures when it's safe

Trailing commas after * or ** in a function signature are only safe for Python 3.6
code.  So now Black checks whether the file was already Python 3.6 to begin
with.  If so, trailing commas are used in such cases.  Otherwise, they're not.

When * and ** don't appear in a function signature, the trailing comma is
always safe.

Fixes #8
README.md
black.py
tests/expression.py
tests/fstring.py [new file with mode: 0644]
tests/function.py
tests/test_black.py