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

Refactor `src/black/__init__.py` into many files (#2206)
authorŁukasz Langa <lukasz@langa.pl>
Sat, 8 May 2021 09:29:47 +0000 (11:29 +0200)
committerGitHub <noreply@github.com>
Sat, 8 May 2021 09:29:47 +0000 (11:29 +0200)
commitf2ea461e9e9fa5c47bb61fd72d512c748928badc
tree266c2619b49e82ed1e7f80776b7a8554fde9ce0c
parent4fc1354aeb6b217cd18dbdb2a0c41373fa9d8056
Refactor `src/black/__init__.py` into many files (#2206)

* Move string-related utility to functions to strings.py, const.py
* Move Leaf/Node-related functionality to nodes.py
* Move comment-related functions to comments.py
* Move caching to cache.py and Mode/TargetVersion/Feature to mode.py
* Move some leftover functions to nodes.py, comments.py, strings.py
* Add missing files to source list for test runs
* Move line-related functionality into lines.py, brackets into brackets.py
* Move transformers to trans.py
* Move file handling, output, parsing, concurrency, debug, and report
* Move two more functions to nodes.py
* Add CHANGES
* Add numeric.py
* Add linegen.py
* More docstrings
* Include new files in tests

Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
23 files changed:
CHANGES.md
src/black/__init__.py
src/black/brackets.py [new file with mode: 0644]
src/black/cache.py [new file with mode: 0644]
src/black/comments.py [new file with mode: 0644]
src/black/concurrency.py [new file with mode: 0644]
src/black/const.py [new file with mode: 0644]
src/black/debug.py [new file with mode: 0644]
src/black/files.py [new file with mode: 0644]
src/black/linegen.py [new file with mode: 0644]
src/black/lines.py [new file with mode: 0644]
src/black/mode.py [new file with mode: 0644]
src/black/nodes.py [new file with mode: 0644]
src/black/numerics.py [new file with mode: 0644]
src/black/output.py [new file with mode: 0644]
src/black/parsing.py [new file with mode: 0644]
src/black/report.py [new file with mode: 0644]
src/black/rusty.py [new file with mode: 0644]
src/black/strings.py [new file with mode: 0644]
src/black/trans.py [new file with mode: 0644]
tests/test_black.py
tests/test_format.py
tests/util.py