-
-
Notifications
You must be signed in to change notification settings - Fork 321
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
Fix bug for plugins using extend_default_ignore #1317
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Black reformatted for me. I'll fix the others too |
8fc745d
to
4fe6f53
Compare
Since Flake8 3.0 we've had the ability for plugins to use `extend_default_ignore` to register codes they want disabled by default. This, however, was a permanent disabling unfortunately. Our code didn't have a way of understanding that this new set of `ignore` codes was actually the 'default' set for that run. Much like the extended_select_list, we now attach extended_ignore_list to be able to confidently determine if the ignore we get in the DecisionEngine is actually the Default Ignore list and what plugins what us to ignore by default. Refs PyCQA/pep8-naming#157
7c89ee3
to
2bb0308
Compare
I'm not sure what your release plans are @asottile so I'll let you merge this |
I'm not planning to release for a while, but if this is important to you I can backport it to 3.9.x -- let me know! |
If you have docs around doing the backport I can also do it. I don't want to keep @ecolell hanging on that PR for too long. (Also knowing full well that pep8-naming will likely need a |
alrighty! released this as 3.9.1 I decided to run the release myself since there were significant conflicts |
Thank you! |
Reason: PyCQA/flake8#1317 Signed-off-by: Fredo Erxleben <[email protected]>
Since Flake8 3.0 we've had the ability for plugins to use
extend_default_ignore
to register codes they want disabled by default.This, however, was a permanent disabling unfortunately. Our code didn't
have a way of understanding that this new set of
ignore
codes wasactually the 'default' set for that run. Much like the
extended_select_list, we now attach extended_ignore_list to be able to
confidently determine if the ignore we get in the DecisionEngine is
actually the Default Ignore list and what plugins what us to ignore by
default.
Refs PyCQA/pep8-naming#157
Extra entertainment for Anthony
