isort icon indicating copy to clipboard operation
isort copied to clipboard

Skip settings not working for file listed on the command line when `--resolve-all-configs` is used

Open SpecLad opened this issue 11 months ago • 0 comments

Create pyproject.toml:

[tool.isort]
extend_skip=['a.py']

Create an empty a.py.

Now compare:

$ isort -v a.py

                 _                 _
                (_) ___  ___  _ __| |_
                | |/ _/ / _ \/ '__  _/
                | |\__ \/\_\/| |  | |_
                |_|\___/\___/\_/   \_/

      isort your imports, so you don't have to.

                    VERSION 5.13.2

$ isort -v --resolve-all-configs a.py

                 _                 _
                (_) ___  ___  _ __| |_
                | |/ _/ / _ \/ '__  _/
                | |\__ \/\_\/| |  | |_
                |_|\___/\___/\_/   \_/

      isort your imports, so you don't have to.

                    VERSION 5.13.2

./pyproject.toml used for file a.py

--resolve-all-configs shouldn't have an effect on which files are ignored, so one of these commands is doing the wrong thing.

SpecLad avatar Jan 16 '25 17:01 SpecLad