You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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.
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.The text was updated successfully, but these errors were encountered: