mirror of
https://github.com/PyCQA/flake8.git
synced 2026-04-12 07:44:16 +00:00
config: Remove args parameter from ConfigFileFinder.__init__
Now that `args` parameters is not being used, it is safe to remove from the constructor signature. Further work is required to evaluate and clean-up tearing out the threading-through of `args` from various callers and tests.
This commit is contained in:
parent
b3a31496b7
commit
584402fa1c
6 changed files with 15 additions and 17 deletions
|
|
@ -31,7 +31,7 @@ def test_get_local_plugins_uses_cli_config():
|
|||
def test_get_local_plugins():
|
||||
"""Verify get_local_plugins returns expected plugins."""
|
||||
config_fixture_path = 'tests/fixtures/config_files/local-plugin.ini'
|
||||
config_finder = config.ConfigFileFinder('flake8', [], [])
|
||||
config_finder = config.ConfigFileFinder('flake8', [])
|
||||
|
||||
with mock.patch.object(config_finder, 'local_config_files') as localcfs:
|
||||
localcfs.return_value = [config_fixture_path]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue