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
Please see the following issue that I raised with ruff: issue
The gist is I can't get isort to truly sort by length as for statements that use the from keyword to import modules, eg:
frompackage.subpackage.moduleimportfunction
It does not count anything including or after the import statement towards the line length. For example, when sorting by line length the output would be something like this.
I'm not sure if this is intended but for me personally it seems to make more sense that the total line length should be taken into account, not just the length of the module.
P.S. As a side note, as a possible new feature, it would be really great if there was an option to import statements that span multiple lines at the bottom of the section, sort of in a subsection. I say subsection because ideally the main sections could have line breaks but the subsections wouldn't. Something like the following would be really cool
Please see the following issue that I raised with ruff: issue
The gist is I can't get isort to truly sort by length as for statements that use the from keyword to import modules, eg:
It does not count anything including or after the import statement towards the line length. For example, when sorting by line length the output would be something like this.
I'm not sure if this is intended but for me personally it seems to make more sense that the total line length should be taken into account, not just the length of the module.
P.S. As a side note, as a possible new feature, it would be really great if there was an option to import statements that span multiple lines at the bottom of the section, sort of in a subsection. I say subsection because ideally the main sections could have line breaks but the subsections wouldn't. Something like the following would be really cool
The text was updated successfully, but these errors were encountered: