-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
import/order: unresolved imports affecting the other #957
Comments
I have a similar problem. |
Any update on this? |
It’s not clear what the solution is to me. Ignoring them doesn’t necessarily work - does that mean they end up at the bottom? Unchanged, but other things can be moved across them? A PR with tests would be welcome. |
I would not ignore them. Imports of type |
That seems reasonable. Of course, the best workaround for this is, make sure all your specifiers resolve - whether that's |
Unresolved imports automatically get "NaN" rank and also take part in finding out order violations.
Config:
Example 1.
Example 2.
In the first example you may see that the order of imports is violated, because external import c goes after parent d. In the second one a becomes an unresolved due to ~ sign and starts interfering to plugin work.
I would say that unresolved imports should be ignored from the ordering process.
The text was updated successfully, but these errors were encountered: