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

Support for specific warning ignores per-file #54

Closed
asottile opened this issue Apr 3, 2021 · 1 comment
Closed

Support for specific warning ignores per-file #54

asottile opened this issue Apr 3, 2021 · 1 comment

Comments

@asottile
Copy link
Member

asottile commented Apr 3, 2021

In GitLab by @pmdarrow on Nov 12, 2014, 08:41

It seems that flake8 only supports ignoring warnings with # flake8: noqa for the entire file or # noqa for a specific line. This is too granular - I would like to ignore a specific error type per file or line. For example, pylint supports this typo of ignore with # pylint: disable=X0123. Would love to see this same functionality in flake8.

@asottile
Copy link
Member Author

asottile commented Apr 3, 2021

In GitLab by @sigmavirus24 on Nov 12, 2014, 17:11

I think you mean it isn't granular enough. That said, this is a request that's been made many times and frankly we've regretted for too long allowing usage of # noqa. We're not going to make it more granular. It isn't worth the complexity and # noqa is now almost entirely handled by pep8 which also won't accept this feature request.

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