Skip to content

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

Open
@SpecLad

Description

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.

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions