-
Notifications
You must be signed in to change notification settings - Fork 655
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
REFACTOR-#4902: use isort #6551
Conversation
Signed-off-by: Anatoly Myachev <[email protected]>
6a58edd
to
6836309
Compare
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.
CodeQL found more than 10 potential problems in the proposed changes. Check the Files changed tab for more details.
d21387e
to
45b1a1a
Compare
# NOTE: keep the black command here in sync with the pre-commit hook in | ||
# /contributing/pre-commit | ||
- run: black --check --diff modin/ asv_bench/benchmarks scripts/doc_checker.py | ||
- run: isort . --check-only |
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 see no reason not to apply isort
to all Python files in the project. black
tool can also be applied to all Python files.
Signed-off-by: Anatoly Myachev <[email protected]>
45b1a1a
to
1fed21f
Compare
Signed-off-by: Anatoly Myachev <[email protected]>
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.
+1 on these changes from me
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.
Looked through the code, changes LGTM. Still need some fixing of the infra/docs, though...
Signed-off-by: Anatoly Myachev <[email protected]>
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.
LGTM! But you now have merge conflicts @anmyachev...
What do these changes do?
isort
works as follows:isort .
- automatically adjusts imports in all python files in the current directoryisort . --check-only
- shows files that need to be fixedAll the changes are made automatically by
isort
.flake8 modin/ asv_bench/benchmarks scripts/doc_checker.py
black --check modin/ asv_bench/benchmarks scripts/doc_checker.py
git commit -s
added andpassingdocs/development/architecture.rst
is up-to-date