You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Clash with black formatter (new line after module docstring) #366
reorder-python-imports worked together fine with black up to version 23. From version 24, black seems to have introduced a forced new line after the module docstring.
reorder-python-imports apparently forces no new line after the module docstring.
How can I use the two together as pre-commit hooks without conflict? Neither seems to be configurable in this regard.
First: I'm a huge fan of reorder-python imports, thank you! Second I followed your suggestion and opened psf/black#4175. Please allow me to ask:
Do you think its possible that any future version of reorder-python-imports might allow or preserve a blank line between a module level doc-string at the top of a file and the first import?
Activity
asottile commentedon Jan 26, 2024
open an issue with black then
maxwell-k commentedon Jan 26, 2024
First: I'm a huge fan of reorder-python imports, thank you! Second I followed your suggestion and opened psf/black#4175. Please allow me to ask:
Do you think its possible that any future version of
reorder-python-importsmight allow or preserve a blank line between a module level doc-string at the top of a file and the first import?The behaviour I'm asking about is:
In place of:
asottile commentedon Jan 26, 2024
anything is possible. will it happen here: no