forked from psf/black
-
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.
fix issue psf#251: isort removes newlines before standalone comments …
…if the following line is an import of the same group
- Loading branch information
1 parent
7c556fa
commit d0f3f2d
Showing
4 changed files
with
137 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,6 +4,7 @@ _build | |
.vscode | ||
docs/_static/pypi.svg | ||
.tox | ||
.idea | ||
__pycache__ | ||
black.egg-info | ||
build/ | ||
|
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,112 @@ | ||
"""The asyncio package, tracking PEP 3156.""" | ||
|
||
# flake8: noqa | ||
|
||
from logging import ( | ||
ERROR, | ||
) | ||
import sys | ||
|
||
# This relies on each of the submodules having an __all__ variable. | ||
from .base_events import * | ||
from .coroutines import * | ||
from .events import * # comment here | ||
# bugfix_1 | ||
from .futures import * | ||
from .locks import * # comment here | ||
from .protocols import * | ||
# bugfix_2 | ||
from ..runners import * # comment here | ||
from ..queues import * | ||
from ..streams import * | ||
|
||
from some_library import ( | ||
Just, Enough, Libraries, To, Fit, In, This, Nice, Split, Which, We, No, Longer, Use | ||
) | ||
from name_of_a_company.extremely_long_project_name.component.ttypes import CuteLittleServiceHandlerFactoryyy | ||
from name_of_a_company.extremely_long_project_name.extremely_long_component_name.ttypes import * | ||
|
||
from .a.b.c.subprocess import * | ||
from . import (tasks) | ||
from . import (A, B, C) | ||
from . import SomeVeryLongNameAndAllOfItsAdditionalLetters1, \ | ||
SomeVeryLongNameAndAllOfItsAdditionalLetters2 | ||
# bugfix_3 | ||
__all__ = ( | ||
base_events.__all__ | ||
+ coroutines.__all__ | ||
+ events.__all__ | ||
+ futures.__all__ | ||
+ locks.__all__ | ||
+ protocols.__all__ | ||
+ runners.__all__ | ||
+ queues.__all__ | ||
+ streams.__all__ | ||
+ tasks.__all__ | ||
) | ||
|
||
|
||
# output | ||
|
||
|
||
"""The asyncio package, tracking PEP 3156.""" | ||
|
||
# flake8: noqa | ||
|
||
from logging import ERROR | ||
import sys | ||
|
||
# This relies on each of the submodules having an __all__ variable. | ||
from .base_events import * | ||
from .coroutines import * | ||
from .events import * # comment here | ||
# bugfix_1 | ||
from .futures import * | ||
from .locks import * # comment here | ||
from .protocols import * | ||
# bugfix_2 | ||
from ..runners import * # comment here | ||
from ..queues import * | ||
from ..streams import * | ||
|
||
from some_library import ( | ||
Just, | ||
Enough, | ||
Libraries, | ||
To, | ||
Fit, | ||
In, | ||
This, | ||
Nice, | ||
Split, | ||
Which, | ||
We, | ||
No, | ||
Longer, | ||
Use, | ||
) | ||
from name_of_a_company.extremely_long_project_name.component.ttypes import ( | ||
CuteLittleServiceHandlerFactoryyy, | ||
) | ||
from name_of_a_company.extremely_long_project_name.extremely_long_component_name.ttypes import * | ||
|
||
from .a.b.c.subprocess import * | ||
from . import tasks | ||
from . import A, B, C | ||
from . import ( | ||
SomeVeryLongNameAndAllOfItsAdditionalLetters1, | ||
SomeVeryLongNameAndAllOfItsAdditionalLetters2, | ||
) | ||
# bugfix_3 | ||
__all__ = ( | ||
base_events.__all__ | ||
+ coroutines.__all__ | ||
+ events.__all__ | ||
+ futures.__all__ | ||
+ locks.__all__ | ||
+ protocols.__all__ | ||
+ runners.__all__ | ||
+ queues.__all__ | ||
+ streams.__all__ | ||
+ tasks.__all__ | ||
) |
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