-
Notifications
You must be signed in to change notification settings - Fork 218
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
Enable the isort rules for ruff and fix linting issues #3698
Conversation
Ah, it looks like we can get Lines 41 to 52 in ba942f2
I had forgotten that we needed to make those explicit due to how our python path is set up on Airflow 😅 |
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.
Awesome find!!
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.
Good catch, I have some additional notes. Thanks!
Co-authored-by: Dhruv Bhanushali <hi@dhruvkb.dev>
30e9653
to
b5a5194
Compare
Fixes
Fixes #3695 by @stacimc
Description
When we moved from isort to ruff, the import sorting in the pre-commit step was broken. This PR:
pyproject.toml
to enable the isort rules for ruff, which causes import sorting to begin working again in the pre-commit.Testing Instructions
Pick any file and move the imports out of order (out of alphabetical order, change the spaces between import blocks, move local imports before third party, etc). Run
just lint
and verify it fails and updates the file. Verify that no other files were changed (all other fixes should be present in this PR).Checklist
Update index.md
).main
) or a parent feature branch.Developer Certificate of Origin
Developer Certificate of Origin