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

Flake8: Fix E201, E202 and E231 #9761

Merged
merged 1 commit into from
Mar 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions dojo/tools/api_bugcrowd/api_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,10 +111,10 @@ def test_connection(self):
list(map(lambda p: p["attributes"]["name"], targets))
)
return (
f'With {total_subs} submissions, you have access to the "{ program_names }" '
f'With {total_subs} submissions, you have access to the "{program_names}" '
f"programs, "
f"you can use these as Service key 1 for filtering submissions "
f'You also have targets "{ target_names }" that can be used in Service key 2'
f'You also have targets "{target_names}" that can be used in Service key 2'
)
else:
raise Exception(
Expand Down
4 changes: 2 additions & 2 deletions dojo/tools/api_bugcrowd/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,8 @@ def get_findings(self, file, test):
entry["attributes"]["description"],
"",
"Bugcrowd details:",
f"- Severity: P{ bugcrowd_severity }",
f"- Bug Url: [{bug_url}]({ bug_url })",
f"- Severity: P{bugcrowd_severity}",
f"- Bug Url: [{bug_url}]({bug_url})",
"",
f"Bugcrowd link: [{links}]({links})",
]
Expand Down
2 changes: 1 addition & 1 deletion dojo/tools/kics/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def get_findings(self, filename, test):
expected_value = item.get("expected_value")
actual_value = item.get("actual_value")

description = f"{query.get('description','')}\n"
description = f"{query.get('description', '')}\n"
if platform:
description += f"**Platform:** {platform}\n"
if category:
Expand Down
Loading