options: Remove parsing --verbose from the configuration file

The `--verbose` option is only used by `flake8`, itself,` when parsing
and handling preliminary options.  After parsing and merging options
from the configuration file, there is no other behavioral impact to the
core of `flake8`.  In other words, setting `verbose = ...` in a
configuration file doesn't change the logging verbosity.

While the `FileProcessor` does expose a `verbose` attribute, obtained
from the parsed options, the verbosity of the core of `flake8` should be
consistent with how a plugin may respond to the attribute's value.
This commit is contained in:
Eric N. Vander Weele 2019-10-12 12:30:53 +02:00
parent 0359533fca
commit 6017022942
4 changed files with 1 additions and 18 deletions

View file

@ -7,5 +7,4 @@ exclude =
foo/,
bar/,
bogus/
verbose = 2
quiet = 1

View file

@ -27,8 +27,6 @@ def test_parse_cli_config(optmanager, config_finder):
normalize_paths=True)
optmanager.add_option('--ignore', parse_from_config=True,
comma_separated_list=True)
optmanager.add_option('--verbose', parse_from_config=True,
action='count')
optmanager.add_option('--quiet', parse_from_config=True,
action='count')
parser = config.MergedConfigParser(optmanager, config_finder)
@ -43,7 +41,6 @@ def test_parse_cli_config(optmanager, config_finder):
os.path.abspath('bar/'),
os.path.abspath('bogus/'),
],
'verbose': 2,
'quiet': 1,
}
@ -68,8 +65,6 @@ def test_parse_user_config(optmanager, config_finder):
normalize_paths=True)
optmanager.add_option('--ignore', parse_from_config=True,
comma_separated_list=True)
optmanager.add_option('--verbose', parse_from_config=True,
action='count')
optmanager.add_option('--quiet', parse_from_config=True,
action='count')
parser = config.MergedConfigParser(optmanager, config_finder)
@ -85,7 +80,6 @@ def test_parse_user_config(optmanager, config_finder):
os.path.abspath('bar/'),
os.path.abspath('bogus/'),
],
'verbose': 2,
'quiet': 1,
}
@ -97,8 +91,6 @@ def test_parse_local_config(optmanager, config_finder):
normalize_paths=True)
optmanager.add_option('--ignore', parse_from_config=True,
comma_separated_list=True)
optmanager.add_option('--verbose', parse_from_config=True,
action='count')
optmanager.add_option('--quiet', parse_from_config=True,
action='count')
parser = config.MergedConfigParser(optmanager, config_finder)
@ -116,7 +108,6 @@ def test_parse_local_config(optmanager, config_finder):
os.path.abspath('bar/'),
os.path.abspath('bogus/'),
],
'verbose': 2,
'quiet': 1,
}