Skip to content

skip_file ignored when on the first docstring lineΒ #1840

@romaingz

Description

@romaingz

This does not occur on version 5.9.3.

Since version 5.10.0, the following skip_file directive is ignored:

"""isort:skip_file"""

This is also ignored:

"""isort:skip_file

some other comment.
"""

It needs to be on a new line:

"""
isort:skip_file
"""

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