Skip to content

flake8 #noqa comments get moved a place where they're ignored #195

@shish

Description

@shish

Operating system: Linux
Python version: 3.6
Black version: 18.4a5
Does also happen on master: ?

Using a long list of typing imports with #noqa because my code is py2 compatible so I'm using the comment syntax for type hints

original code

from typing import Dict, List, Set, ...  # noqa

becomes

from typing import (
    Dict,
    List,
    Set,
    ...,
)  # noqa

but flake8 wants

from typing import (  # noqa
    Dict,
    List,
    Set,
    ...,
)

Metadata

Metadata

Assignees

No one assigned

    Labels

    F: commentsThe syntactic kind. Not in the language grammar, always on our minds. Best bugs.T: styleWhat do we want Blackened code to look like?

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions