This repository is public and stands alone. Comments and prose no longer describe another repository, its documents, hosts, network or runner sizing; each one states its own reason or is gone. - Workflow headers keep the conclusions (disposable runner with no outside secret, the if: guard is not a boundary, no fork pull requests, the image build's memory cap) and drop the description. - Isolation lines are worded as a property of this repository. - The denied image namespace stays in check_image_versions.py, described only as a namespace this repository's CI must not use. - CLAUDE.md and CONTRIBUTING.md gain the standing rule and the search to run when bringing content in from another repository. - ci image 0.2.29 -> 0.2.30: .pre-commit-config.yaml and requirements-dev.txt are image inputs. The ADR 0004 pointers, the README Roadmap, the skills-source mentions and released changelog entries stay as they are. Closes #108 Co-Authored-By: Claude Fable 5.2 <[email protected]> Claude-Session: https://claude.ai/code/session_014uGZTNmHMc85bomfevwUDG
48 lines
1.4 KiB
Python
48 lines
1.4 KiB
Python
# SPDX-FileCopyrightText: Defame1297 and contributors
|
|
# SPDX-License-Identifier: GPL-3.0-or-later
|
|
"""Run `reuse lint`, tolerating only unused licence texts.
|
|
|
|
LICENSES/ carries licence texts (GPL-3.0-only, Apache-2.0, MIT,
|
|
EUPL-1.2) before the roles that use them exist; reuse >= 6 reports those as
|
|
non-compliant. Every other finding still fails. Once the extraction waves have brought
|
|
in files for all of them, delete UNUSED_ALLOWED and call `reuse lint` directly.
|
|
"""
|
|
|
|
import json
|
|
import subprocess
|
|
import sys
|
|
|
|
UNUSED_ALLOWED = {"GPL-3.0-only", "Apache-2.0", "MIT", "EUPL-1.2"}
|
|
|
|
|
|
def main() -> int:
|
|
proc = subprocess.run(
|
|
["reuse", "lint", "--json"], capture_output=True, text=True, check=False
|
|
)
|
|
try:
|
|
report = json.loads(proc.stdout)
|
|
except json.JSONDecodeError:
|
|
sys.stderr.write(proc.stdout + proc.stderr)
|
|
return 1
|
|
problems = {}
|
|
for key, value in report["non_compliant"].items():
|
|
if key == "unused_licenses":
|
|
value = [name for name in value if name not in UNUSED_ALLOWED]
|
|
if value:
|
|
problems[key] = value
|
|
if problems:
|
|
sys.stderr.write(
|
|
"reuse lint found problems:\n" + json.dumps(problems, indent=2) + "\n"
|
|
)
|
|
return 1
|
|
print(
|
|
"reuse lint: compliant (unused licence texts tolerated: "
|
|
+ ", ".join(sorted(UNUSED_ALLOWED))
|
|
+ ")"
|
|
)
|
|
return 0
|
|
|
|
|
|
if __name__ == "__main__":
|
|
sys.exit(main())
|