PyCQA / isort

A Python utility / library to sort imports.
https://pycqa.github.io/isort/
MIT License
6.49k stars 580 forks source link

fix: CLI --src flag glob patterns #2284

Open marcelo-souzaf opened 2 months ago

marcelo-souzaf commented 2 months ago

Context

Resolves #2001. A set is created with the resolved paths to avoid multiplicity, but paths can't be used as glob expressions, so the code fails when initializing the Config instance. Given that there is logic to keep the src paths unique after evaluating them, the changes fix the bug harmlessly.

Overview