]> 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 black into packages in src/ dir (#1376)
authorCooper Lees <cooper@fb.com>
Fri, 8 May 2020 15:50:50 +0000 (08:50 -0700)
committerGitHub <noreply@github.com>
Fri, 8 May 2020 15:50:50 +0000 (08:50 -0700)
commit2082a325fdd14f0aabd88f7f12a20f9fb085c538
tree5b80d3bdab907a51e854f77cb788f753fdb386b2
parent0721f11731b64b1b134f3cb7c227a6477044e8fa
Refactor black into packages in src/ dir (#1376)

- Move black.py to src/black/__init__.py
- Have setuptools_scm make src/_black_version.py and exclude from git
- Move blackd.py to src/blackd/__init__.py
- Move blib2to3/ to src/
- Update `setup.py`
- Update unittests to pass
  - Mostly path fixing + resolving
- Update CI
  - pre-commit config
  - appveyor + travis

Tested on my mac with python 3.7.5 via:
```
python3 -m venv /tmp/tb3
/tmp/tb3/bin/pip install --upgrade setuptools pip coverage pre-commit
/tmp/tb2/bin/pip install ~/repos/black/
cd ~/repos/black/
/tmp/tb2/bin/coverage run tests/test_black.py
/tmp/tb3/bin/pre-commit run -a
/tmp/tb3/bin/black --help
/tmp/tb3/bin/black ~/repos/ptr/ptr.py
```
25 files changed:
.appveyor.yml
.coveragerc
.gitignore
.pre-commit-config.yaml
.travis.yml
setup.py
src/black/__init__.py [moved from black.py with 100% similarity]
src/blackd/__init__.py [moved from blackd.py with 100% similarity]
src/blib2to3/Grammar.txt [moved from blib2to3/Grammar.txt with 100% similarity]
src/blib2to3/LICENSE [moved from blib2to3/LICENSE with 100% similarity]
src/blib2to3/PatternGrammar.txt [moved from blib2to3/PatternGrammar.txt with 100% similarity]
src/blib2to3/README [moved from blib2to3/README with 100% similarity]
src/blib2to3/__init__.py [moved from blib2to3/__init__.py with 100% similarity]
src/blib2to3/pgen2/__init__.py [moved from blib2to3/pgen2/__init__.py with 100% similarity]
src/blib2to3/pgen2/conv.py [moved from blib2to3/pgen2/conv.py with 100% similarity]
src/blib2to3/pgen2/driver.py [moved from blib2to3/pgen2/driver.py with 100% similarity]
src/blib2to3/pgen2/grammar.py [moved from blib2to3/pgen2/grammar.py with 100% similarity]
src/blib2to3/pgen2/literals.py [moved from blib2to3/pgen2/literals.py with 100% similarity]
src/blib2to3/pgen2/parse.py [moved from blib2to3/pgen2/parse.py with 100% similarity]
src/blib2to3/pgen2/pgen.py [moved from blib2to3/pgen2/pgen.py with 100% similarity]
src/blib2to3/pgen2/token.py [moved from blib2to3/pgen2/token.py with 100% similarity]
src/blib2to3/pgen2/tokenize.py [moved from blib2to3/pgen2/tokenize.py with 100% similarity]
src/blib2to3/pygram.py [moved from blib2to3/pygram.py with 100% similarity]
src/blib2to3/pytree.py [moved from blib2to3/pytree.py with 100% similarity]
tests/test_black.py