Set a default value for --select

This allows us to add --append-to-select and --append-to-ignore at a
later date that will work as expected and in a consistent manner.
This commit is contained in:
Ian Cordasco 2016-06-16 08:27:28 -05:00
parent 023de21fe2
commit 1de71fbe89
No known key found for this signature in database
GPG key ID: 656D3395E4A9791A
3 changed files with 3 additions and 2 deletions

View file

@ -354,7 +354,7 @@
that start with that string. For example, you can use ``E``, ``E4``,
``E43``, and ``E431``.
This has no default value.
This defaults to: E,F,W,C
Command-line example:

View file

@ -2,6 +2,7 @@
EXCLUDE = '.svn,CVS,.bzr,.hg,.git,__pycache__,.tox'
IGNORE = 'E121,E123,E126,E226,E24,E704,W503,W504'
SELECT = 'E,F,W,C'
MAX_LINE_LENGTH = 79
TRUTHY_VALUES = set(['true', '1', 't'])

View file

@ -112,7 +112,7 @@ def register_default_options(option_manager):
)
add_option(
'--select', metavar='errors', default='',
'--select', metavar='errors', default=defaults.SELECT,
parse_from_config=True, comma_separated_list=True,
help='Comma-separated list of errors and warnings to enable.'
' For example, ``--select=E4,E51,W234``. (Default: %default)',