Skip to content

isort does not skip files #885

@nikitagashkov

Description

@nikitagashkov

Describe the bug

isort does not respect skip and skip_glob configuration options.

To Reproduce

Steps to reproduce the behavior:

  1. Create file.py with the following content:
    import os, \
        sys
  2. Create .isort.cfg with the following content:
    [settings]
    skip_glob = file.py
    
  3. Run isort file.py.
  4. Open file.py and check out it's content to become:
    import os
    import sys

Expected behavior

A file.py is skipped and is not touched.

Screenshots

Environment (please complete the following information):

  • OS: Linux
  • Python version: 3.7.2
  • isort version: 4.3.11

Additional context

isort 4.3.10 is working correctly. Issue can be reproduced with skip option as well.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions