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

ci(pre-commit): update isort stages to fix deprecation warning #4790

Merged

Conversation

JigyasuRajput
Copy link
Contributor

@JigyasuRajput JigyasuRajput commented Feb 9, 2025

Description:

Fixes #4537 this updates the .pre-commit-config.yaml to resolve the isort deprecation warning related to outdated stage names (commit, merge-commit, push). The fix involves:

  • Running pre-commit autoupdate to update isort.
  • Manually replacing deprecated stages with recommended ones (pre-commit, pre-merge-commit).

Changes:

  • Updated .pre-commit-config.yaml with the correct isort stages.

Testing:

  • Ran pre-commit run --all-files to verify there are no warnings/errors.

Copy link
Contributor

@terriko terriko left a comment

Choose a reason for hiding this comment

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

Your comment says that these should be pre-commit, pre-merge but then you have one named pre-merge-commit. Which one is correct?

Copy link
Contributor

@terriko terriko left a comment

Choose a reason for hiding this comment

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

(see comment above)

@JigyasuRajput
Copy link
Contributor Author

(see comment above)

@terriko Thanks for catching that! The correct stage names are pre-commit and pre-merge-commit. I've updated the comment to reflect this. Let me know if there's anything else needed...

@terriko
Copy link
Contributor

terriko commented Feb 11, 2025

ok, glad it's correct in the code. I've set the workflow to run again so that the required tests pass; I'll be back to merge it after they're done.

Copy link
Contributor

@terriko terriko left a comment

Choose a reason for hiding this comment

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

Merge time; thank you again!

@terriko terriko merged commit 6858532 into intel:main Feb 13, 2025
24 checks passed
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.

ci: isort deprecation warning
2 participants