-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Unsorted and Unformatted Import Blocks in Multiple Files #10261
Comments
I'm not quite sure I understand since that rule is already enabled. Is it possible you're using an older version of ruff that's formatting it differently? Feel free to open a PR showing an example of what should change. That could make it clearer. |
According to your comment in the issue you are on a modern version of ruff. Can you share at what moment you're getting these erros? Perhaps the IDE is configured with a different auto formatter which is conflicting with the ruff pre-commit hook? |
@RayBB The rule is enabled, but the errors aren't fixed. I’ll attach a screenshot of the error I'm seeing. I'm unsure why this is happening since my IDE isn't set up with any auto-formatters. |
What command are you running to see that error?
…On Mon, Jan 6, 2025, 9:08 AM Ananya Sriramareddy Kaligal < ***@***.***> wrote:
@RayBB <https://github.com/RayBB> The rule is enabled, but the errors
aren't fixed. I’ll attach a screenshot of the error I'm seeing. I'm unsure
why this is happening since my IDE isn't set up with any auto-formatters.
Screenshot.from.2025-01-06.18-05-56.png (view on web)
<https://github.com/user-attachments/assets/5638317c-0f78-4097-b692-72b26f82589f>
—
Reply to this email directly, view it on GitHub
<#10261 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAHA5AMDN7P5TOAFAIMVNXD2JKE5FAVCNFSM6AAAAABURNLUMCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKNZTGE4DMMBYG4>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
@RayBB |
@ananyakaligal could you try uninstalling and reinstalling ruff? If the above doesn't work here are two options:
|
@RayBB The above two suggestions still gave me an error. I am not sure whether I will be able to make it to the meeting, if not i will post on the slack channel. Thankyou |
Description:
There are multiple instances of unsorted or unformatted import blocks across the codebase, violating the I001 rule from Ruff. This affects the readability and maintainability of the code.
Action Items
Additional Notes
This cleanup will enhance code quality and ensure compliance with our coding standards.
@RayBB please review this and let me know if this is something we should address. Once approved, I can begin working on it.
The text was updated successfully, but these errors were encountered: