question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Allow multiple one-line imports

See original GitHub issue

I 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:closed
  • Created 9 years ago
  • Reactions:1
  • Comments:11 (11 by maintainers)

github_iconTop GitHub Comments

1reaction
asottilecommented, Jul 1, 2018

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.

0reactions
Dinoshauercommented, Jan 23, 2015

I’ll have a look at implementing it in #_get_steps when I get some time again

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found