-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Closed as not planned
Labels
T: bugSomething isn't workingSomething isn't working
Description
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:
1872 was the original Black issue, and changes were implemented in 3932; 4028 doesn't relate to imports.
mcflugen, failedguidedog, lrwb-aou, adamchainz, tdegeus and 7 more
Metadata
Metadata
Assignees
Labels
T: bugSomething isn't workingSomething isn't working