summaryrefslogtreecommitdiff
path: root/src/flake8/options
diff options
context:
space:
mode:
authorEric N. Vander Weele <ericvw@gmail.com>2020-01-07 13:03:34 -0500
committerEric N. Vander Weele <ericvw@gmail.com>2020-01-07 13:03:34 -0500
commit3d546d448a22b131f42444657f0985b37b252097 (patch)
tree8984fee456e7f5c4b477495b1a908775a3213c8e /src/flake8/options
parenta5c17c1a19bd0478a8e7543d13cce8fdd30488f2 (diff)
downloadflake8-3d546d448a22b131f42444657f0985b37b252097.tar.gz
config: Switch code paths to use 'ConfigFileFinder.ignore_config_files'
Now that the `ConfigFileFinder` has the `.ignore_config_files` attribute, switch the relevant code paths to utilize this public attribute. Tests have been updated to either construct `ConfigFileFinder` or mock the object appropriately.
Diffstat (limited to 'src/flake8/options')
-rw-r--r--src/flake8/options/config.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/flake8/options/config.py b/src/flake8/options/config.py
index e921f6e..ead12dc 100644
--- a/src/flake8/options/config.py
+++ b/src/flake8/options/config.py
@@ -307,7 +307,7 @@ class MergedConfigParser(object):
:rtype:
dict
"""
- if isolated:
+ if self.config_finder.ignore_config_files:
LOG.debug(
"Refusing to parse configuration files due to user-"
"requested isolation"
@@ -344,7 +344,7 @@ def get_local_plugins(config_finder, cli_config=None, isolated=False):
flake8.options.config.LocalPlugins
"""
local_plugins = LocalPlugins(extension=[], report=[], paths=[])
- if isolated:
+ if config_finder.ignore_config_files:
LOG.debug(
"Refusing to look for local plugins in configuration"
"files due to user-requested isolation"