-
Notifications
You must be signed in to change notification settings - Fork 52
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
tidy-import unintentional changes post v1.8.6 (PyInf#11818) #287
Comments
@Carreau Can you provide an ETA here ? |
I'm back from Time Off starting today, I will have a look. |
You will have to be more precise about which changes are improper and what you expect. The new ordering past 1.8.6 was an explicit changes requested in issue #13. I think that the new logic separate builtins modules at the top, so I expect simplejson to move. I guess As pyflyby can't know dshiva is a special package it treats it as any other an external package (numpy/scipy) and sort it lexicographically. If you do care about the But my impression from #13 is that pyflyby should rely more on tools like isort and get closer to other standard than to implement custom logics ? But if you can better describe the logic you wish we can do out best to implement it. |
The statements I believe if there are more imports with "from ." (like I see that the ask in #13 is to sort the imports lexicographically. So the group 1 ( The expected should have been
|
Also noting that in case like below, new lines introduced before
Tidy-imports run:
|
I will see what I can do, but there are a few limitation:
I see what I can do, but maybe in the short term we should just revert #263. |
This should take care of deshaw#287 until we reimplement the sorting logic.
This should take care of deshaw#287 until we reimplement the sorting logic.
The sort_imports feature introduced has several issues. So do not use it till #287 is sorted Request: PyInf#12353
The sort_imports feature introduced has several issues. So do not use it till #287 is sorted Request: PyInf#12353
This tries to implement some of the rule of import sorting as requested in deshaw#13 using custom logic, This was originally fixed in deshaw#263 using isort, but reverted and re-requested as of deshaw#287
This tries to implement some of the rule of import sorting as requested in deshaw#13 using custom logic, This was originally fixed in deshaw#263 using isort, but reverted and re-requested as of deshaw#287
This tries to implement some of the rule of import sorting as requested in deshaw#13 using custom logic, This was originally fixed in deshaw#263 using isort, but reverted and re-requested as of deshaw#287
This tries to implement some of the rule of import sorting as requested in deshaw#13 using custom logic, This was originally fixed in deshaw#263 using isort, but reverted and re-requested as of deshaw#287
This tries to implement some of the rule of import sorting as requested in deshaw#13 using custom logic, This was originally fixed in deshaw#263 using isort, but reverted and re-requested as of deshaw#287
The below script is clean and tidy-imports (before 1.8.6) doesn't complain anything
But the latest version is suggesting some improper changes
The expected suggestion after #13 should be
Where similar package items are grouped and still sorted lexicographically.
The text was updated successfully, but these errors were encountered: