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

Blacken .py files in blib2to3 (#1011)
authorMichael J. Sullivan <sully@msully.net>
Sun, 20 Oct 2019 13:55:31 +0000 (06:55 -0700)
committerŁukasz Langa <lukasz@langa.pl>
Sun, 20 Oct 2019 13:55:31 +0000 (15:55 +0200)
commit0ff718e1e2b434477bca134e6c8aa0f67c898cbc
tree16293e6ff6b72f80026f3da5b8432097c9d0d199
parent3bfb66971f03da39ae1f4c98c30d55e60f63d33b
Blacken .py files in blib2to3 (#1011)

* Blacken .py files in blib2to3

This is in preparation for adding type annotations to blib2to3 in
order to compiling it with mypyc (#1009, which I can rebase on top of
this).

To enforce that it stays blackened, I just cargo-culted the existing
test code used for validating formatting. It feels pretty clunky now,
though, so I can abstract the common logic out into a helper if that
seems better. (But error messages might be less clear then?)

* Tidy up the tests
12 files changed:
blib2to3/__init__.py
blib2to3/pgen2/conv.py
blib2to3/pgen2/driver.py
blib2to3/pgen2/grammar.py
blib2to3/pgen2/literals.py
blib2to3/pgen2/parse.py
blib2to3/pgen2/pgen.py
blib2to3/pgen2/token.py
blib2to3/pgen2/tokenize.py
blib2to3/pygram.py
blib2to3/pytree.py
tests/test_black.py