Please check if the PR fulfills these requirements
[x] Tests for the changes have been added (see test_plugin_not_found_in_baseline in tests/core/baseline_test.py)
[ ] Docs have been added / updated
[ ] All CI checks are green
What kind of change does this PR introduce?
Bug fix (for #718)
What is the current behavior?
718
What is the new behavior (if this is a feature change)?
$ detect-secrets-hook --baseline .secrets.baseline setup.py
[initialize] ERROR Error: Failed to load `FakeCustomPlugin` plugin:
[Errno 2] No such file or directory: './path/to/plugin/that/does/not/exist/plugin.py'
[initialize] ERROR This error can occur when using a baseline that references a custom plugin
with a path that does not exist.
[scan] ERROR Unable to load plugins!
Fixes: #718
Please check if the PR fulfills these requirements
[x] Tests for the changes have been added (see
test_plugin_not_found_in_baseline
intests/core/baseline_test.py
)[ ] Docs have been added / updated
[ ] All CI checks are green
What kind of change does this PR introduce? Bug fix (for #718)
What is the current behavior?
718
What is the new behavior (if this is a feature change)?
Does this PR introduce a breaking change? No
Other information: