mirror of
https://github.com/PyCQA/flake8.git
synced 2026-04-06 21:16:54 +00:00
Add --extend-select command line argument
Implement `--extend-select` command line argument following what was done for `--extend-ignore` in !233. This option can be used to selectively add individual codes without overriding the default list entirely. Addresses the remaining item of issue #365.
This commit is contained in:
parent
a7be77f761
commit
7db4f246a7
6 changed files with 83 additions and 17 deletions
|
|
@ -14,6 +14,7 @@ def create_options(**kwargs):
|
|||
"""Create and return an instance of argparse.Namespace."""
|
||||
kwargs.setdefault('select', [])
|
||||
kwargs.setdefault('extended_default_select', [])
|
||||
kwargs.setdefault('extend_select', [])
|
||||
kwargs.setdefault('ignore', [])
|
||||
kwargs.setdefault('extend_ignore', [])
|
||||
kwargs.setdefault('disable_noqa', False)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue