Skip to content

Commit f32ed4f

Browse files
committed
Fix pre-commit failures: ruff import spacing + SPDX sidecars
pre-commit.ci on #843 surfaced two issues: - ruff I001: generate.py was missing the blank line required by the repo's lines-after-imports = 2 isort setting. - reuse lint: extra.txt had no copyright/licensing information. Adding sidecar .license files is the repo's established pattern for plain-text fixtures (see tests/packages/install-data/data.txt.license). Also add sidecars for the two static.cdx.json fixtures for good measure -- CI didn't flag them but local reuse runs do. Both are one-line sidecars matching the rest of the repo's style.
1 parent b24415b commit f32ed4f

4 files changed

Lines changed: 10 additions & 0 deletions

File tree

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# SPDX-FileCopyrightText: 2026 The meson-python developers
2+
#
3+
# SPDX-License-Identifier: MIT

tests/packages/dist-info-sboms/generate.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
import json
88
import sys
99

10+
1011
with open(sys.argv[1], 'w') as f:
1112
json.dump({
1213
'bomFormat': 'CycloneDX',
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# SPDX-FileCopyrightText: 2026 The meson-python developers
2+
#
3+
# SPDX-License-Identifier: MIT
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# SPDX-FileCopyrightText: 2026 The meson-python developers
2+
#
3+
# SPDX-License-Identifier: MIT

0 commit comments

Comments
 (0)