-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Closed
Labels
F: empty linesWasting vertical space efficiently.Wasting vertical space efficiently.S: acceptedThe changes in this design / enhancement issue have been accepted and can be implementedThe changes in this design / enhancement issue have been accepted and can be implementedT: styleWhat do we want Blackened code to look like?What do we want Blackened code to look like?
Description
Describe the style change
This applies to the first line of code after the block of imports at the top of the file.
These lines are not changed by black:
from middleman.authentication import validate_oauth_token
logger = logging.getLogger(__name__)
This is changed to the above (makes sense to me):
from middleman.authentication import validate_oauth_token
logger = logging.getLogger(__name__)
However, black does not reformat this:
from middleman.authentication import validate_oauth_token
logger = logging.getLogger(__name__)
This is very annoying since it allows for inconsistency.
Desired style
I think black
should reformat that final example to look like the first. As an alternative, it could also always leave two lines. Either one or two lines is fine by me, but only one option should be valid.
Additional context
I think it's that simple.
Metadata
Metadata
Assignees
Labels
F: empty linesWasting vertical space efficiently.Wasting vertical space efficiently.S: acceptedThe changes in this design / enhancement issue have been accepted and can be implementedThe changes in this design / enhancement issue have been accepted and can be implementedT: styleWhat do we want Blackened code to look like?What do we want Blackened code to look like?