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

Fix isort_wrapper to recognize first party correctly #37

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

drafear
Copy link
Member

@drafear drafear commented May 10, 2023

Resolves #36

@Jannchie
Copy link
Member

Jannchie commented Jul 28, 2024

I encountered the same issue, and I hope this PR can be merged.

@@ -128,7 +128,7 @@ def run(
if len(targets) == 0:
return 0

cmd = ["isort", "--settings-path", str(setting_path)]
cmd = ["isort", "--settings-path", str(setting_path), "--src", str(base_dir)]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

isort==4 does not seem to support --src option. We may need to check isort's version in the same manner to --recursive option.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

base_dir may not what you want. it is not the source directory.

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

Successfully merging this pull request may close these issues.

isort does not recognize first party correctly
3 participants