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

Upgrade isort and enable black compat mode #1467

Merged
merged 1 commit into from
Dec 11, 2020

Conversation

owais
Copy link
Contributor

@owais owais commented Dec 11, 2020

isort and black can be incompatible. Often isort re-writes files in a
way black doesn't like. It takes quite some time and manual effort to
make changes that satisfy both isort and black.

Fortunately, newer versions of isort support a black compatibility mode by setting
isort profile to "black". This makes isort order imports in a way that
is compatible with how black formats Python code. This PR configures
isort to use the black profile by default.

@owais owais requested review from a team, toumorokoshi and lzchen and removed request for a team December 11, 2020 10:48
@owais owais added the Skip Changelog PRs that do not require a CHANGELOG.md entry label Dec 11, 2020
@owais owais force-pushed the isort-and-black-be-friends branch 6 times, most recently from 835662c to 68ead87 Compare December 11, 2020 11:44
isort and black can be incompatible. Often isort re-writes files in a
way black doesn't like. It takes quite some time and manual effort to
make changes that satisfy both isort and black.

Fortunately, newer versions of isort support a black compatibility mode by setting
isort profile to "black". This makes isort order imports in a way that
is compatible with how black formats Python code. This PR configures
isort to use the black profile by default.
@owais owais force-pushed the isort-and-black-be-friends branch from 68ead87 to a0d478c Compare December 11, 2020 13:36
Copy link
Contributor

@ocelotl ocelotl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking good 👍

@lzchen lzchen merged commit 119812a into open-telemetry:master Dec 11, 2020
codeboten pushed a commit to codeboten/opentelemetry-python that referenced this pull request Dec 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Skip Changelog PRs that do not require a CHANGELOG.md entry
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants