-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor black into packages in src/ dir (psf#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 ```
- Loading branch information
1 parent
0721f11
commit 2082a32
Showing
25 changed files
with
34 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
[report] | ||
omit = | ||
blib2to3/* | ||
src/blib2to3/* | ||
tests/data/* | ||
*/site-packages/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters