Describe the bug
It is impossible to use Black 24.1.0 alongside reorder-python-imports. Using the example from #1872 , reorder-python-imports produces:
"""Module docstring."""
import typing
While formatting with black and default arguments produces the following:
"""Module docstring."""
import typing
This new behaviour makes the two tools incompatible. The author of reorder-python-imports suggests this is an issue with Black.
Is it possible to change Black to work better with reorder-python-imports please? I have used both tools together for a long time.
Environment
black, 24.1.0 (compiled: yes)
Python (CPython) 3.12.1
Also checked on the online formatter.
Additional context
A little bit of context from the Black changelog is that Black 24 and above will:
Enforce newline after module docstrings (#3932, #4028)
1872 was the original Black issue, and changes were implemented in 3932; 4028 doesn't relate to imports.
Describe the bug
It is impossible to use Black 24.1.0 alongside reorder-python-imports. Using the example from #1872 ,
reorder-python-importsproduces:While formatting with
blackand default arguments produces the following:This new behaviour makes the two tools incompatible. The author of reorder-python-imports suggests this is an issue with Black.
Is it possible to change Black to work better with reorder-python-imports please? I have used both tools together for a long time.
Environment
Also checked on the online formatter.
Additional context
A little bit of context from the Black changelog is that Black 24 and above will:
1872 was the original Black issue, and changes were implemented in 3932; 4028 doesn't relate to imports.