My import statements keep showing that it’s unformatted or unsorted so it has the yellow underline Expected behavior:
It’s not supposed to show that. My code is well formatted
Actual behavior:
It’s telling me my code is unformatted
Steps to reproduce:
Bug appears at this link:
Browser: OS: Device (Android, iOS, NA leave blank): android Desktop app version (Avatar menu->“Version”) or NA: Plan (Free, Hacker, Pro Plan): free
Hi @Sandee004 , welcome to the forums!
That won’t disrupt your code, it is only a styling recommendation. You can fix it by clicking on the lightbulb.
If this answers your question, you can mark this post as a Solution.
I think, from the times I’ve seen it, that the formatter would prefer your imports to be sorted in alphabetical order. You can also just tell it to ignore those lines by adding this to the end of each one:
An easier way is to go to pyproject.toml and remove the 'I' from the select variable list, or you can just allow code intelligence to automatically fix it with the light bulb.
Code intelligence can be configured, and knowing how to is very useful.