mirror of
https://github.com/PyCQA/flake8.git
synced 2026-03-29 10:36:53 +00:00
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:
parent
023de21fe2
commit
1de71fbe89
3 changed files with 3 additions and 2 deletions
|
|
@ -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:
|
||||
|
||||
|
|
|
|||
|
|
@ -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'])
|
||||
|
|
|
|||
|
|
@ -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)',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue