forced_together option or alternative for keeping top-level modules together #1021
Labels
documentation
Improvements or additions to documentation
enhancement
New feature or request
good first issue
Good for newcomers
I'd like to see an equivalent of the
forced_separate
option calledforced_together
that takes section names and removes spaces between them.Here is the scenario:
I have two modules that I want to view as "the same" (they are separate for historic reasons only). The problem is that isort lifts the
imports
above thefrom
imports, messing up the order:Which is ugly as sin.
An alternative would be an option to only lift the bare
imports
for top-level modules (`--group-toplevel'), which would change the output to:The text was updated successfully, but these errors were encountered: