Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Configure isort to be compatible with black #28

Merged
merged 1 commit into from
Apr 4, 2020
Merged

Conversation

pganssle
Copy link
Owner

@pganssle pganssle commented Apr 4, 2020

One of the main inconsistencies with black is the multi-line output, so black will try to write:

from module import (
  x,
  y,
  z,
)

But isort will try to write:

from module import x, y, z

This makes it impossible to pass --check with both tools.

I've also included a few other changes to the isort configuration that were mostly stolen from the attrs project.

One of the main inconsistencies with black is the multi-line output, so
black will try to write:

from module import (
  x,
  y,
  z,
)

But isort will try to write:

from module import x, y, z

This makes it impossible to pass --check with both tools.

I've also included a few other changes to the isort configuration that were
mostly stolen from the attrs project.
@pganssle pganssle merged commit 0653bd7 into master Apr 4, 2020
@pganssle pganssle deleted the change_isort_config branch May 21, 2020 13:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant