Allow multiple one-line imports
See original GitHub issueI usually import modules in a single import statement like so:
from __future__ import absolute_imports, unicode_literals
reorder-python-imports
demands each import to be placed on seperate lines. Isort has this as a config option: force_single_line
Issue Analytics
- State:
- Created 9 years ago
- Reactions:1
- Comments:11 (11 by maintainers)
Top Results From Across the Web
Is there anything bad about having multiple imports on one line?
Copying one of several imports to another Python module is a copy-paste of a line, rather than that copy-paste followed by trimming off...
Read more >Multiple imports on one line (E401) - Flake8 Rules
Imports from different modules should occur on different lines.
Read more >One Import Per Line Preference - PyCharm Guide - JetBrains
One Import Per Line Preference. Tell PyCharm to put each import on a separate line when it cleans up your imports.
Read more >PEP 328 – Imports: Multi-Line and Absolute/Relative
Another option is to only allow one level of relative import. That misses a lot of functionality, and people still complained about missing...
Read more >Import Multiple Line transactions in QuickBooks Online using ...
This guide explains how to import Multiple Line Transactions if the details are spread in MULTIPLE COLUMNS. Let's get into an experiment. We...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I’m probably not going to implement this. The README has been updated with this rationale for the current style output.
That said, it’s now easier to use
isort
through pre-commit with correct import classification via seed-isort-config.I’ll have a look at implementing it in
#_get_steps
when I get some time again