mirror of
https://github.com/PyCQA/flake8.git
synced 2026-04-06 21:16:54 +00:00
config: Make ConfigFileFinder 'extra_config_files' parameter optional
This simplifies the number of required parameters needed for the `ConfigFileFinder` object throughout the various tests.
This commit is contained in:
parent
44d67e46f5
commit
eb6698c420
6 changed files with 17 additions and 22 deletions
|
|
@ -32,7 +32,6 @@ def test_aggregate_options_with_config(optmanager):
|
|||
'E11,E34,E402,W,F', '--exclude', 'tests/*']
|
||||
config_finder = config.ConfigFileFinder(
|
||||
'flake8',
|
||||
[],
|
||||
config_file=CLI_SPECIFIED_CONFIG)
|
||||
options, args = aggregator.aggregate_options(
|
||||
optmanager, config_finder, arguments)
|
||||
|
|
@ -47,7 +46,7 @@ def test_aggregate_options_when_isolated(optmanager):
|
|||
arguments = ['flake8', '--select', 'E11,E34,E402,W,F',
|
||||
'--exclude', 'tests/*']
|
||||
config_finder = config.ConfigFileFinder(
|
||||
'flake8', [], ignore_config_files=True)
|
||||
'flake8', ignore_config_files=True)
|
||||
optmanager.extend_default_ignore(['E8'])
|
||||
options, args = aggregator.aggregate_options(
|
||||
optmanager, config_finder, arguments)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue