mirror of
https://github.com/PyCQA/flake8.git
synced 2026-04-05 04:36:52 +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
|
|
@ -163,7 +163,7 @@ class Application(object):
|
|||
"""
|
||||
if self.config_finder is None:
|
||||
self.config_finder = config.ConfigFileFinder(
|
||||
self.option_manager.program_name, args, append_config
|
||||
self.option_manager.program_name, append_config
|
||||
)
|
||||
|
||||
def find_plugins(self, config_file, ignore_config_files):
|
||||
|
|
|
|||
|
|
@ -16,14 +16,12 @@ __all__ = ("ConfigFileFinder", "MergedConfigParser")
|
|||
class ConfigFileFinder(object):
|
||||
"""Encapsulate the logic for finding and reading config files."""
|
||||
|
||||
def __init__(self, program_name, args, extra_config_files):
|
||||
# type: (str, List[str], List[str]) -> None
|
||||
def __init__(self, program_name, extra_config_files):
|
||||
# type: (str, List[str]) -> None
|
||||
"""Initialize object to find config files.
|
||||
|
||||
:param str program_name:
|
||||
Name of the current program (e.g., flake8).
|
||||
:param list args:
|
||||
The extra arguments passed on the command-line.
|
||||
:param list extra_config_files:
|
||||
Extra configuration files specified by the user to read.
|
||||
"""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue