-
-
Notifications
You must be signed in to change notification settings - Fork 584
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
isort
does not search for config when using --filename
#1989
Comments
Related: #1940 |
This looks like introduced via 0973421 So generally the workaround is to just use
|
Fixes PyCQA#1989 `--filename` is a shortcut setting used only in the stdin case to set the `settings_path`. Generally, `--settings-path=<file_path>` == `--filename=<filename>` should hold. This functionality was removed in 0973421 (Reuse config when items passed in through stdin as used when items passed in explicitly).
If you have files in this structure:
say that
pyproject.toml
configures for profile black.Then, this works (picks up the profile black):
but this does not:
but this does (notice the CWD)
In VS Code extension for
isort
we are using the stdin way to perform sorting. This is need to support the organize import on save capability. I was able to simulate the same problem usingtype
(on windows) andcat
(on linux).reference issue: microsoft/vscode-isort#138
The text was updated successfully, but these errors were encountered: