Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

False-positive on mypy related config #282

Open
SN4KEBYTE opened this issue Feb 2, 2023 · 0 comments
Open

False-positive on mypy related config #282

SN4KEBYTE opened this issue Feb 2, 2023 · 0 comments

Comments

@SN4KEBYTE
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant