diff options
| author | Anthony Sottile <asottile@umich.edu> | 2019-11-27 17:00:24 +0000 |
|---|---|---|
| committer | Anthony Sottile <asottile@umich.edu> | 2019-11-27 17:00:24 +0000 |
| commit | e891d5b00a9cbe1e0680d06314f9c5090148632e (patch) | |
| tree | a295346484f25b7fc4d89dc5544b9fa7a464c728 | |
| parent | e571167161a42a5da052eaf247ab13ac0c56b7c6 (diff) | |
| parent | 131b063cb29c1278d618aee1b107f8992a3aef4c (diff) | |
| download | flake8-e891d5b00a9cbe1e0680d06314f9c5090148632e.tar.gz | |
Merge branch 'app-remove-local-plugin-attr' into 'master'
application: Remove local plugins state
See merge request pycqa/flake8!386
| -rw-r--r-- | src/flake8/main/application.py | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/flake8/main/application.py b/src/flake8/main/application.py index 6e7aabf..689a1ad 100644 --- a/src/flake8/main/application.py +++ b/src/flake8/main/application.py @@ -58,8 +58,6 @@ class Application(object): ) options.register_default_options(self.option_manager) - #: The :class:`flake8.options.config.LocalPlugins` found in config - self.local_plugins = None # type: config.LocalPlugins #: The instance of :class:`flake8.plugins.manager.Checkers` self.check_plugins = None # type: plugin_manager.Checkers # fmt: off @@ -167,18 +165,18 @@ class Application(object): Determine whether to parse configuration files or not. (i.e., the --isolated option). """ - self.local_plugins = config.get_local_plugins( + local_plugins = config.get_local_plugins( config_finder, config_file, ignore_config_files ) - sys.path.extend(self.local_plugins.paths) + sys.path.extend(local_plugins.paths) self.check_plugins = plugin_manager.Checkers( - self.local_plugins.extension + local_plugins.extension ) self.formatting_plugins = plugin_manager.ReportFormatters( - self.local_plugins.report + local_plugins.report ) self.check_plugins.load_plugins() |
