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

Isort ignores --resolve-all-configs #158

Closed
CaBazaga opened this issue Nov 15, 2022 · 2 comments
Closed

Isort ignores --resolve-all-configs #158

CaBazaga opened this issue Nov 15, 2022 · 2 comments
Assignees
Labels
triage-needed Issue is not triaged.

Comments

@CaBazaga
Copy link

As title mentions it completely ignores any nested config file, in my case setup.cfg.

Surprisingly even when switched to environment isort, or even when path set to the which isort that actually works properly from the command line.

isort --diff --resolve-all-configs components/core/app/gunicorn_app.py gives completely different output as does in VScode, using the mentioned --resolve-all-configs arg, no matter bundled, environment or path explicit is setted up.

I've an instance of setup.cfg file both in project's root folder and in components/core folder, main difference is the headings strings and a known_first_party=app setting on the one in components/core folder.

This works flawlessly on command line.

@github-actions github-actions bot added the triage-needed Issue is not triaged. label Nov 15, 2022
@karthiknadig
Copy link
Member

This is a bug in isort itself, I have filed an issue on isort and it has to be addressed there.
PyCQA/isort#1989

If you need a workaround try this:
microsoft/vscode-python#18714 (comment)

@karthiknadig karthiknadig closed this as not planned Won't fix, can't repro, duplicate, stale Nov 16, 2022
@mjpieters
Copy link

Another work-around is to add --settings-path <directory with .isort.cfg or full pathname> to isort.args.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
triage-needed Issue is not triaged.
Projects
None yet
Development

No branches or pull requests

3 participants