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

REFACTOR-#4902: use isort #6551

Merged
merged 6 commits into from
Sep 15, 2023
Merged

Conversation

anmyachev
Copy link
Collaborator

@anmyachev anmyachev commented Sep 12, 2023

What do these changes do?

isort works as follows:

  • isort . - automatically adjusts imports in all python files in the current directory
  • isort . --check-only - shows files that need to be fixed

All the changes are made automatically by isort.

  • first commit message and PR title follow format outlined here

    NOTE: If you edit the PR title to match this format, you need to add another commit (even if it's empty) or amend your last commit for the CI job that checks the PR title to pick up the new PR title.

  • passes flake8 modin/ asv_bench/benchmarks scripts/doc_checker.py
  • passes black --check modin/ asv_bench/benchmarks scripts/doc_checker.py
  • signed commit with git commit -s
  • Resolves STY: use isort #4902
  • tests added and passing
  • module layout described at docs/development/architecture.rst is up-to-date

Copy link

@github-advanced-security github-advanced-security bot left a 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.

@anmyachev anmyachev force-pushed the issue4902 branch 2 times, most recently from d21387e to 45b1a1a Compare September 12, 2023 15:28
# 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
Copy link
Collaborator Author

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]>
Signed-off-by: Anatoly Myachev <[email protected]>
@anmyachev anmyachev marked this pull request as ready for review September 12, 2023 20:10
@anmyachev anmyachev requested review from a team as code owners September 12, 2023 20:10
dchigarev
dchigarev previously approved these changes Sep 13, 2023
Copy link
Collaborator

@dchigarev dchigarev left a 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

Copy link
Collaborator

@vnlitvinov vnlitvinov left a 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...

.github/workflows/ci.yml Show resolved Hide resolved
Signed-off-by: Anatoly Myachev <[email protected]>
vnlitvinov
vnlitvinov previously approved these changes Sep 15, 2023
Copy link
Collaborator

@vnlitvinov vnlitvinov left a 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...

@dchigarev dchigarev merged commit 0e9cfdb into modin-project:master Sep 15, 2023
@anmyachev anmyachev deleted the issue4902 branch September 15, 2023 16:15
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.

STY: use isort
3 participants