summaryrefslogtreecommitdiff
path: root/src/flake8/main
diff options
context:
space:
mode:
authorEric N. Vander Weele <ericvw@gmail.com>2020-01-07 12:39:21 -0500
committerEric N. Vander Weele <ericvw@gmail.com>2020-01-07 12:54:47 -0500
commita5c17c1a19bd0478a8e7543d13cce8fdd30488f2 (patch)
treed538e15de3f224205a9ccbde7ef90781b47c658d /src/flake8/main
parent4395b0560523c57e732c66e3f9ad9bb916aa3c1b (diff)
downloadflake8-a5c17c1a19bd0478a8e7543d13cce8fdd30488f2.tar.gz
config: Add 'ignore_config_files' parameter to ConfigFileFinder
The `--isolated` flag is passed into `MergedConfigParser.parse()` and the module-level function `config.get_local_plugins()`. Since both of these places utilize the `ConfigFileFinder` object and isolation pertains to how the `ConfigFileFinder` should behave with respect to isolation, this incremental change more directly associates the `ConfigFileFinder` and configuration file isolate.
Diffstat (limited to 'src/flake8/main')
-rw-r--r--src/flake8/main/application.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/flake8/main/application.py b/src/flake8/main/application.py
index 791d5af..7ea3fbb 100644
--- a/src/flake8/main/application.py
+++ b/src/flake8/main/application.py
@@ -335,7 +335,9 @@ class Application(object):
prelim_opts, remaining_args = self.parse_preliminary_options(argv)
flake8.configure_logging(prelim_opts.verbose, prelim_opts.output_file)
config_finder = config.ConfigFileFinder(
- self.program, prelim_opts.append_config
+ self.program,
+ prelim_opts.append_config,
+ ignore_config_files=prelim_opts.isolated,
)
self.find_plugins(
config_finder, prelim_opts.config, prelim_opts.isolated