Skip to content

False-positive on mypy related config #282

@SN4KEBYTE

Description

@SN4KEBYTE

Hello!

I have the following mypy's configuration line at the top of my file:

# mypy: disable-error-code="attr-defined"

When I'm running flake8, I'm getting E800 error on this line. If I add noqa: E800, mypy is ignoring this config line. I've tried the following variations:

# mypy: disable-error-code="attr-defined" noqa: E800
# noqa: E800 mypy: disable-error-code="attr-defined" noqa: E800
noqa: E800
mypy: disable-error-code="attr-defined" noqa: E800

I figured out, that I can ignore E800 error for the whole file, but that does not seem as a good option. Is there a way to config all this, or does the plugin itself require some fix? Thank you!

I'm using flake8-eradicate==1.4.0 installed through wemake-python-styleguide.

Metadata

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