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

Fix sort order of imports to match isort's rules. #80

Merged
merged 6 commits into from Oct 30, 2020
Merged

Conversation

icemac
Copy link
Member

@icemac icemac commented Oct 30, 2020

Again just applied the changes isort suggests.

(Sorry I was not able to tweak the rules in a way so the current sort order matches the rules.)

@icemac icemac requested a review from dataflake October 30, 2020 08:37
@icemac icemac self-assigned this Oct 30, 2020
@dataflake
Copy link
Member

I'll try to handle it.

@dataflake
Copy link
Member

The first run fixes first party and localfolder. The current package is never first party, it is always localfolder. I'll spend a little more time to convert as many imports as possible to relative imports now, there's a wild mixture of relative and absolute imports and that's seriously annoying.

Copy link
Member

@dataflake dataflake left a comment

Choose a reason for hiding this comment

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

This is now ready. As you can see, with a tweaked isort config the changes are minimal. 90% of this is my second step of converting to relative to clean it all up.

@dataflake dataflake merged commit 09e4e64 into master Oct 30, 2020
@dataflake dataflake deleted the fix-isort branch October 30, 2020 09:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants