Skip to content

Commit 7cec3f5

Browse files
sethmlarsonhugovkezio-melotti
authored
Apply suggestions from code review
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com> Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>
1 parent b1ce472 commit 7cec3f5

2 files changed

Lines changed: 7 additions & 7 deletions

File tree

run_release.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -490,7 +490,7 @@ def test_release_artifacts(db: DbfilenameShelf) -> None:
490490

491491
def build_sbom_artifacts(db):
492492

493-
# Skip building an SBOM if there isn't an 'Misc/sbom.spdx.json' file.
493+
# Skip building an SBOM if there isn't a 'Misc/sbom.spdx.json' file.
494494
if not (db["git_repo"] / "Misc/sbom.spdx.json").exists():
495495
print("Skipping building an SBOM, missing 'Misc/sbom.spdx.json'")
496496
return

sbom.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -293,10 +293,10 @@ def create_sbom_for_source_tarball(tarball_path: str):
293293
return sbom
294294

295295

296-
if __name__ == "__main__":
296+
def main() -> None:
297297
tarball_path = sys.argv[1]
298-
print(
299-
json.dumps(
300-
create_sbom_for_source_tarball(tarball_path), indent=2, sort_keys=True
301-
)
302-
)
298+
sbom_data = create_sbom_for_source_tarball(tarball_path)
299+
print(json.dumps(sbom_data, indent=2, sort_keys=True))
300+
301+
if __name__ == "__main__":
302+
main()

0 commit comments

Comments
 (0)