refactor plugin loading options to prepare for --require-plugins

This commit is contained in:
Anthony Sottile 2022-01-10 20:03:25 -05:00
parent 6abefff89e
commit 1b58293ad3
5 changed files with 59 additions and 29 deletions

View file

@ -90,7 +90,8 @@ def mock_file_checker_with_plugin(plugin_target):
),
),
]
plugins = finder.load_plugins(to_load, [], set())
opts = finder.PluginOptions(frozenset())
plugins = finder.load_plugins(to_load, [], opts)
# Prevent it from reading lines from stdin or somewhere else
with mock.patch(