summaryrefslogtreecommitdiff
path: root/src/flake8/options
diff options
context:
space:
mode:
authorEric N. Vander Weele <ericvw@gmail.com>2020-01-07 13:14:34 -0500
committerEric N. Vander Weele <ericvw@gmail.com>2020-01-07 13:14:34 -0500
commitc918e7249699ab91ccbd6d69a898d19aa009c971 (patch)
tree258f2692d8a214e48e792cdd72162d464916edc7 /src/flake8/options
parent3d546d448a22b131f42444657f0985b37b252097 (diff)
downloadflake8-c918e7249699ab91ccbd6d69a898d19aa009c971.tar.gz
Remove unused 'isolated' parameter
Now that `ConfigFileFinder.ignore_config_files` attribute is used everywhere and is constructed from the `--isolated` CLI option, the now unused `isolated` parameters can be safely removed.
Diffstat (limited to 'src/flake8/options')
-rw-r--r--src/flake8/options/aggregator.py6
-rw-r--r--src/flake8/options/config.py10
2 files changed, 3 insertions, 13 deletions
diff --git a/src/flake8/options/aggregator.py b/src/flake8/options/aggregator.py
index 58d1022..939dfb3 100644
--- a/src/flake8/options/aggregator.py
+++ b/src/flake8/options/aggregator.py
@@ -17,7 +17,6 @@ def aggregate_options(
manager, # type: OptionManager
config_finder, # type: config.ConfigFileFinder
cli_config, # type: Optional[str]
- isolated, # type: bool
argv, # type: List[str]
): # type: (...) -> Tuple[argparse.Namespace, List[str]]
"""Aggregate and merge CLI and config file options.
@@ -29,9 +28,6 @@ def aggregate_options(
:param str cli_config:
Value of --config when specified at the command-line. Overrides
all other config files.
- :param bool isolated:
- Determines if we should parse configuration files at all or not.
- If running in isolated mode, we ignore all configuration files
:param list argv:
The list of remaining command-line argumentsthat were unknown during
preliminary option parsing to pass to ``manager.parse_args``.
@@ -50,7 +46,7 @@ def aggregate_options(
)
# Get the parsed config
- parsed_config = config_parser.parse(cli_config, isolated)
+ parsed_config = config_parser.parse(cli_config)
# Extend the default ignore value with the extended default ignore list,
# registered by plugins.
diff --git a/src/flake8/options/config.py b/src/flake8/options/config.py
index ead12dc..7261bcd 100644
--- a/src/flake8/options/config.py
+++ b/src/flake8/options/config.py
@@ -289,7 +289,7 @@ class MergedConfigParser(object):
return config
- def parse(self, cli_config=None, isolated=False):
+ def parse(self, cli_config=None):
"""Parse and return the local and user config files.
First this copies over the parsed local configuration and then
@@ -299,9 +299,6 @@ class MergedConfigParser(object):
:param str cli_config:
Value of --config when specified at the command-line. Overrides
all other config files.
- :param bool isolated:
- Determines if we should parse configuration files at all or not.
- If running in isolated mode, we ignore all configuration files
:returns:
Dictionary of parsed configuration options
:rtype:
@@ -326,7 +323,7 @@ class MergedConfigParser(object):
return self.merge_user_and_local_config()
-def get_local_plugins(config_finder, cli_config=None, isolated=False):
+def get_local_plugins(config_finder, cli_config=None):
"""Get local plugins lists from config files.
:param flake8.options.config.ConfigFileFinder config_finder:
@@ -334,9 +331,6 @@ def get_local_plugins(config_finder, cli_config=None, isolated=False):
:param str cli_config:
Value of --config when specified at the command-line. Overrides
all other config files.
- :param bool isolated:
- Determines if we should parse configuration files at all or not.
- If running in isolated mode, we ignore all configuration files
:returns:
LocalPlugins namedtuple containing two lists of plugin strings,
one for extension (checker) plugins and one for report plugins.