-
Notifications
You must be signed in to change notification settings - Fork 308
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
Sort imports based on flake8-import-order #572
Conversation
|
||
import keyring | ||
|
||
from . import utils | ||
from . import exceptions |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We seem to have a mixture of absolute imports from twine import ...
and absolute-relative imports from . import ...
we should probably standardize on those
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Happy to address this after we settle on one of these PRs.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd prefer to use isort
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I refrain from having an opinion on style until it impedes our contributors' ability to contribute meaningful changes. In the meantime, let it ride.
Superseded by #570 |
As an alternative to #570, and partially out of my own curiosity. I think I prefer isort, but I don't feel strongly.
Changes:
tox -e lint-code-style
zimports --multi-imports
to format importsAs in the other PR, this allows multiple imports per line, which minimizes the changes, esp. with the
typing
module.