mirror of
https://github.com/PyCQA/flake8.git
synced 2026-04-09 14:24:17 +00:00
Remove unused 'cli_config' parameter
Now that `ConfigFileFinder.config_file` attribute is used everywhere and is constructed from the `--config` CLI option, the now unused `cli_config` parameters can be safely removed.
This commit is contained in:
parent
77b2506071
commit
1e3bad20dd
8 changed files with 19 additions and 35 deletions
|
|
@ -35,7 +35,7 @@ def test_aggregate_options_with_config(optmanager):
|
|||
[],
|
||||
config_file=CLI_SPECIFIED_CONFIG)
|
||||
options, args = aggregator.aggregate_options(
|
||||
optmanager, config_finder, CLI_SPECIFIED_CONFIG, arguments)
|
||||
optmanager, config_finder, arguments)
|
||||
|
||||
assert options.select == ['E11', 'E34', 'E402', 'W', 'F']
|
||||
assert options.ignore == ['E123', 'W234', 'E111']
|
||||
|
|
@ -50,7 +50,7 @@ def test_aggregate_options_when_isolated(optmanager):
|
|||
'flake8', [], ignore_config_files=True)
|
||||
optmanager.extend_default_ignore(['E8'])
|
||||
options, args = aggregator.aggregate_options(
|
||||
optmanager, config_finder, None, arguments)
|
||||
optmanager, config_finder, arguments)
|
||||
|
||||
assert options.select == ['E11', 'E34', 'E402', 'W', 'F']
|
||||
assert sorted(options.ignore) == [
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue