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

add isort to manage/sort imports #864

Closed
wants to merge 1 commit into from

Conversation

nemith
Copy link
Contributor

@nemith nemith commented Sep 21, 2023

Add isort as a way to cleanup and manage imports in addition to black.

Black is great tool and will format the import lines, but doesn't sort them, remove unused imports, or sorts them but it does work well with the isort (import sort) tool.

https://black.readthedocs.io/en/stable/guides/using_black_with_other_tools.html#isort

Black was developed by Łukasz which at facebook and there we always used black along side isort as well.

See https://black.readthedocs.io/en/stable/guides/using_black_with_other_tools.html#isort

@nemith nemith marked this pull request as ready for review September 21, 2023 20:17
@dbarrosop
Copy link
Contributor

This is fine by me, I am all for delegating as many opinions as possible to intransigent machines so if Kirk is fine with this too we can merge after the conflicts has been resolved.

@ktbyers
Copy link
Collaborator

ktbyers commented Sep 22, 2023

Sounds good to me.

@@ -1,5 +1,7 @@
from typing import List, Protocol

from typing_extensions import Protocol
Copy link
Collaborator

Choose a reason for hiding this comment

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

@nemith It looks like you need to rebase to get the latest changes that I released last night.

@ktbyers
Copy link
Collaborator

ktbyers commented Oct 3, 2023

Replaced by:

#873

It was easier to just redo the PR than to fix the conflicts.

@ktbyers ktbyers closed this Oct 3, 2023
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.

3 participants