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

When using --filename (streaming mode), --resolve-all-configs is not honoured. #2000

Closed
mjpieters opened this issue Nov 16, 2022 · 1 comment

Comments

@mjpieters
Copy link
Contributor

mjpieters commented Nov 16, 2022

When you use the --filename option while streaming Python code to stdin for formatting, isort ignores configuration in the path for that filename.

Given a directory foo with .isort.cfg in that directory, I would expect that cat <somefile> | isort --resolve-all-configs --filename 'foo/bar.py' would use foo/.isort.cfg. Is that an incorrect expectation?

If I instead first use cd foo and then pipe Python source code through isort, the .isort.cfg configuration is correctly picked up.

@mjpieters
Copy link
Contributor Author

I just found #1989, this is a duplicate of that report.

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