Skip to content

Commit 0f7c99a

Browse files
fix: resolve ruff D203 and COM812 lint errors from formatter conflict
1 parent 6266610 commit 0f7c99a

4 files changed

Lines changed: 5 additions & 1 deletion

File tree

dojo/tools/anchore_grype/parser.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212

1313

1414
class AnchoreGrypeParser:
15+
1516
"""
1617
Anchore Grype JSON report format generated with `-o json` option.
1718

dojo/tools/cargo_audit/parser.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88

99

1010
class CargoAuditParser:
11+
1112
"""A class that can be used to parse the cargo audit JSON report file"""
1213

1314
def get_fields(self) -> list[str]:

dojo/tools/jfrog_xray_unified/parser.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99

1010

1111
class JFrogXrayUnifiedParser:
12+
1213
"""JFrog Xray JSON reports"""
1314

1415
def get_scan_types(self):
@@ -153,7 +154,7 @@ def get_item(vulnerability, test):
153154
purl_type = package_type.lower()
154155
finding.unsaved_locations.append(
155156
LocationData.dependency(
156-
purl_type=purl_type, name=component_name, version=component_version, file_path=vulnerability["path"]
157+
purl_type=purl_type, name=component_name, version=component_version, file_path=vulnerability["path"],
157158
),
158159
)
159160

dojo/tools/threat_composer/parser.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66

77

88
class ThreatComposerParser:
9+
910
"""Threat Composer JSON can be imported. See here for more info on this JSON format."""
1011

1112
PRIORITY_VALUES = ["Low", "Medium", "High"]

0 commit comments

Comments
 (0)