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 to isort 5 #4323

Merged
merged 6 commits into from
Jul 16, 2020
Merged

Upgrade to isort 5 #4323

merged 6 commits into from
Jul 16, 2020

Conversation

srittau
Copy link
Collaborator

@srittau srittau commented Jul 9, 2020

This now also reformats imports not at the top of files.

This now also reformats imports not at the top of files.
@@ -155,7 +155,7 @@ class Event:
def wait(self, timeout: Optional[float] = ...) -> bool: ...

if sys.version_info >= (3, 8):
from _thread import _ExceptHookArgs as ExceptHookArgs, ExceptHookArgs as _ExceptHookArgs # don't ask
from _thread import ExceptHookArgs as _ExceptHookArgs, _ExceptHookArgs as ExceptHookArgs # don't ask
Copy link
Member

Choose a reason for hiding this comment

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

I'm impressed

Just using "profile = black" doesn't work in the configuration file for
unknown reasons.
@srittau
Copy link
Collaborator Author

srittau commented Jul 9, 2020

@rchen152 pytype doesn't like isort's syntax it seems. Could you have a look?

@hauntsaninja
Copy link
Collaborator

I think isort 5.1 fixes this PyCQA/isort#1280
Maybe we can re-pin and try again?

@srittau
Copy link
Collaborator Author

srittau commented Jul 16, 2020

@hauntsaninja It works now, thanks!

@JelleZijlstra JelleZijlstra merged commit 5e76f51 into python:master Jul 16, 2020
@srittau srittau deleted the update-isort branch July 16, 2020 17:14
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