-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Adds a new tox `format` command - Locks black to the last version supporting python 2 - Configures black using pyproject.toml (unfortunately it cannot be configured using tox.ini, see psf/black#2172)
- Loading branch information
1 parent
0a75315
commit ed8492b
Showing
5 changed files
with
36 additions
and
2 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
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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
[tool.black] | ||
line-length = 119 | ||
target-version = [ | ||
# XXX: This project does still support 2.6, but black does not have a 2.6 | ||
# target. There should be very few (if any) syntax differences between the | ||
# two versions however. | ||
'py27', | ||
'py34', | ||
'py35', | ||
'py36', | ||
'py37', | ||
'py38', | ||
'py39', | ||
'py310', | ||
# Because we're using an old version of black to support older python, there | ||
# is no explicit python version target past 3.10 | ||
] |
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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# We lock to the version just before black 22, as this is when python 2 support | ||
# is dropped. | ||
black==21.11b1 | ||
|
||
# Lock to an older version of click to fix | ||
# https://github.com/psf/black/issues/2964. This was fixed in a newever version | ||
# of black that we cannot use. | ||
click==8.0.2 |
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