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.
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:
This is changed to the above (makes sense to me):
However, black does not reformat this:
This is very annoying since it allows for inconsistency.
Desired style
I think
blackshould 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.