Skip to content

Commit

Permalink
Flake8: Fix E201, E202 and E231
Browse files Browse the repository at this point in the history
  • Loading branch information
kiblik committed Mar 19, 2024
1 parent d4e0de1 commit 6fc18b0
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
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

0 comments on commit 6fc18b0

Please sign in to comment.