mirror of
https://github.com/PyCQA/flake8.git
synced 2026-04-11 15:24:18 +00:00
refactor plugin loading options to prepare for --require-plugins
This commit is contained in:
parent
6abefff89e
commit
1b58293ad3
5 changed files with 59 additions and 29 deletions
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue