Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

API for python scripts Issue #713 #836

Open
wants to merge 12 commits into
base: master
Choose a base branch
from
Prev Previous commit
Next Next commit
XFixed python styling
  • Loading branch information
issabayevmk committed Jun 17, 2024
commit 2d0a6bddcab6188a633e97f203b09e9d9f2a162d
4 changes: 2 additions & 2 deletions detect_secrets/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ def get_settings(filters: list = None, plugins: list = None) -> Dict[str, List]:
Return used plugins and filters to be used to scan with provided params
"""
if filters and not isinstance(filters, list):
raise ValueError(f'Error: "{filters}" must be List object')
raise ValueError(f"Error: '{filters}' must be List object")

if plugins and not isinstance(plugins, list):
raise ValueError(f'Error: "{plugins}" must be List object')
raise ValueError(f"Error: '{plugins}' must be List object")

if filters:
filters_used = filters
Expand Down
Loading
Loading