From 1fa42dcc47d65fe46e97d9046f93aefbed72b6e0 Mon Sep 17 00:00:00 2001 From: anthonyharrison Date: Sun, 26 Nov 2023 16:12:23 +0000 Subject: [PATCH] fix: Linting --- lib4sbom/cyclonedx/cyclonedx_parser.py | 4 +++- lib4sbom/spdx/spdx_parser.py | 4 ++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/lib4sbom/cyclonedx/cyclonedx_parser.py b/lib4sbom/cyclonedx/cyclonedx_parser.py index 9a23b24..5e3caf5 100644 --- a/lib4sbom/cyclonedx/cyclonedx_parser.py +++ b/lib4sbom/cyclonedx/cyclonedx_parser.py @@ -224,7 +224,9 @@ def parse_cyclonedx_json(self, sbom_file): vuln_info.set_value("status", vuln["analysis"]["state"]) vuln_info.set_comment(vuln["analysis"]["detail"]) if "justification" in vuln["analysis"]: - vuln_info.set_value("justification", vuln["analysis"]["justification"] ) + vuln_info.set_value( + "justification", vuln["analysis"]["justification"] + ) vulnerabilities.append(vuln_info.get_vulnerability()) if self.debug: print(vulnerabilities) diff --git a/lib4sbom/spdx/spdx_parser.py b/lib4sbom/spdx/spdx_parser.py index 7baed98..4e0cd0b 100644 --- a/lib4sbom/spdx/spdx_parser.py +++ b/lib4sbom/spdx/spdx_parser.py @@ -278,7 +278,7 @@ def parse_spdx_tag(self, sbom_file): files, packages, self._transform_relationship(relationships, elements), - self.vulnerabilities + self.vulnerabilities, ) def parse_spdx_json(self, sbom_file): @@ -441,7 +441,7 @@ def _parse_spdx_data(self, data): files, packages, self._transform_relationship(relationships, elements), - self.vulnerabilities + self.vulnerabilities, ) def parse_spdx_yaml(self, sbom_file):