Skip to content
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

Different order on same file depending on where you execute isort v5.13.2 #2246

Open
EduMorenoJ opened this issue Mar 8, 2024 · 1 comment

Comments

@EduMorenoJ
Copy link

There is a difference in the order that isort applies depending on where you execute isort.

Steps to reproduce:

Having this python file:

import json
from abc import abstractmethod
from pathlib import Path

from isort_issue.issue.other_file import MyAwesomeClass
from isort_issue.other_path.another_file import AnotherThing
from thirdparty_library import SuperUsefullClass

inside this folder structure ~/isort_issue/issue/test.py

the results are different if you execute isort from ~

isort ./isort_issue/issue/test.py

than if you execute from isort ~/isort_issue/issue

isort test.py
@EduMorenoJ EduMorenoJ changed the title Different order on same file depending on where you execute isort Different order on same file depending on where you execute isort v5.13.2 Mar 8, 2024
@EduMorenoJ
Copy link
Author

Not sure If this issue is the same as #2247 but looks related.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant