Add SPDX + Arm copyright headers across repo#21
Merged
atsyplikhin merged 5 commits intomainfrom Apr 24, 2026
Merged
Conversation
Apache-2.0 §4.1 requires notice preservation on redistribution. Adds canonical SPDX short-form header across all 58 source files (.py, .toml) in the edge package ahead of downstream consumption (notably MHP).
Canonical SPDX short-form header across all 87 source files (.py, .sh, .yml, .toml) in the server package. Shebang scripts receive the header immediately after the shebang line.
Canonical SPDX short-form header across all 33 source files (.py, .toml) in the agent-tools package.
Canonical SPDX short-form header across cross-repo integration tests/ (27 files) and root-level configs (ruff.toml, CI/release workflows).
Adds a "File headers" section to the License section describing the required SPDX + Arm copyright header and placement rules, matching the headers just applied across the codebase.
kavya-chennoju
approved these changes
Apr 24, 2026
3 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
.py,.sh,.yml/.yaml,.toml) acrosspackages/device-connect-edge/,packages/device-connect-server/,packages/device-connect-agent-tools/,tests/, and root configs. Prior baseline had zero headers.#!line.CONTRIBUTING.mdunder the License section so future contributions stay uniform.Motivation: Apache-2.0 §4.1 requires notice preservation on redistribution. Device Connect code is about to be consumed by downstream projects (notably MHP); this pass establishes a clean, machine-readable authorship trail before that happens.
Commits are split per package for easy review (edge, server, agent-tools, tests+root, CONTRIBUTING).
Sample header
Scope
Excluded (per scope)
LICENSE,NOTICE,*.md,.gitignore,.editorconfig, lock files,__pycache__,*.egg-info. No third-party copyrights were found in source; nothing to preserve or reconcile.Test plan
python3 -m py_compileacross all 185.pyfiles — exit 0tomllibacross 3 files — 0 errorsyaml.safe_load_allacross 13 files — 0 errorsbash -nacross 6.shfiles — cleanruff check(run in CI — not available locally)