-
-
Notifications
You must be signed in to change notification settings - Fork 565
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
Can't locate settings when using stdin on isort 5 #1289
Comments
Thanks for reporting! I've fixed this in isort 5.0.5 so that when |
Ohh thanks for the info and the quick fix. I thought --settings-path was for explicitly specifying the path to the settings file, my bad x) |
I just experienced this on 5.1.0 using vim's ALE. I was able to get things working again by adding There's also an ALE issue about this, which is where I learned about the workaround, but it seems like the desired behavior is for isort to have I'm using pyproject.toml config, if that's relevant. I'm happy to provide more detailed info if it's useful (e.g. platform, python version). As always, thanks for the awesome tool! |
Hi there!
Thank you very much for this cool tool! This seems to be a regression from isort 4. I use isort integrated with my text editor, which means I send the file contents via stdin. In the past, isort was able to use the .isort.cfg in the current directory, but that doesn't seem to be the case anymore.
Here's how to reproduce:
With isort 4.3.21:
With isort 5.0.4:
It works if I pass the file as parameter though:
Is there a way to either (1) start the search from the current directory (like isort 4 did) or (2) allow users to pass the file path when formatting stdin (similar to prettier's
--stdin-filepath
)The text was updated successfully, but these errors were encountered: