mirror of
https://github.com/PyCQA/flake8.git
synced 2026-04-08 14:04:16 +00:00
Allow plugins that are on by default to be ignored
Previously, to ensure that plugins on by default were reported, we added them to the select list. This means that ignoring them became impossible. To accomodate our reporting logic and a user's ability to ignore, we need to keep our select and extended select lists separated. This allows us to have a better understanding of who is selecting what, where, and how and make our decision as to whether or not an error should be reported more wisely. Closes #195
This commit is contained in:
parent
c0e5066577
commit
c670217c24
4 changed files with 15 additions and 4 deletions
|
|
@ -12,6 +12,7 @@ from flake8.plugins import notifier
|
|||
def create_options(**kwargs):
|
||||
"""Create and return an instance of optparse.Values."""
|
||||
kwargs.setdefault('select', [])
|
||||
kwargs.setdefault('extended_default_select', [])
|
||||
kwargs.setdefault('ignore', [])
|
||||
kwargs.setdefault('disable_noqa', False)
|
||||
return optparse.Values(kwargs)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue