Skip to content

refactor: replace Apache SkyWalking Eyes with FSFE REUSE tool#7

Merged
alexmohr merged 1 commit intomainfrom
chore/update-year
Feb 14, 2026
Merged

refactor: replace Apache SkyWalking Eyes with FSFE REUSE tool#7
alexmohr merged 1 commit intomainfrom
chore/update-year

Conversation

@alexmohr
Copy link
Contributor

@alexmohr alexmohr commented Feb 12, 2026

Summary

Migrate license header management from Apache SkyWalking Eyes
(license-eye) to FSFE's REUSE tool for SPDX-compliant headers.

  • Add REUSE.toml for bulk annotations on files without inline headers
  • Add .reuse/templates/opensovd.jinja2 custom header template
  • Add LICENSES/Apache-2.0.txt (required by REUSE spec)
  • Add reuse-annotate-hook.sh for pre-commit header management:
    • Preserves original year from existing copyright headers
    • Corrects wrong copyright text automatically
    • Supports Rust/Kotlin (/* */ style) and ODX ( style)
    • Supports rst out of the box to solve Improvement: validate headers in rst #5
  • Rework run_checks.py to use argparse with --copyright, --license,
    --template, --hook-script, --config, --no-fix flags (no env vars)
    • Auto-fixes ruff issues locally, report-only in CI
    • Downloads hook script, template, and license text for consumer repos
    • Cleans up downloaded files after run
  • Rework action.yml to call run_checks.py instead of running
    pre-commit and license-eye separately
  • Replace pre-commit-version and license-config-path inputs with
    copyright-text, license, and reuse-template inputs
  • Migrate all file headers from "Copyright (c)" to "SPDX-FileCopyrightText"
  • Delete .licenserc.yml (no longer needed)

Checklist

  • I have tested my changes locally
  • I have added or updated documentation
  • I have linked related issues or discussions
  • I have added or updated tests

Related

Notes for Reviewers


Signed-off-by: Alexander Mohr alexander.m.mohr@mercedes-benz.com

@alexmohr alexmohr force-pushed the chore/update-year branch 21 times, most recently from 903f29e to 6803917 Compare February 13, 2026 13:32
Migrate license header management from Apache SkyWalking Eyes
(license-eye) to FSFE's REUSE tool for SPDX-compliant headers.

- Add REUSE.toml for bulk annotations on files without inline headers
- Add .reuse/templates/opensovd.jinja2 custom header template
- Add LICENSES/Apache-2.0.txt (required by REUSE spec)
- Add reuse-annotate-hook.sh for pre-commit header management:
  - Preserves original year from existing copyright headers
  - Corrects wrong copyright text automatically
  - Supports Rust/Kotlin (/* */ style) and ODX (<!-- --> style)
  - Supports rst out of the box to solve #5
  - Portable grep (no GNU-only -oP flag)
- Rework run_checks.py to use argparse with --copyright, --license,
  --template, --hook-script, --config, --no-fix flags (no env vars)
  - Auto-fixes ruff issues locally, report-only in CI
  - Downloads hook script, template, and license text for consumer repos
  - Cleans up downloaded files after run
- Rework action.yml to call run_checks.py instead of running
  pre-commit and license-eye separately
- Replace pre-commit-version and license-config-path inputs with
  copyright-text, license, and reuse-template inputs
- Migrate all file headers from "Copyright (c)" to "SPDX-FileCopyrightText"
- Delete .licenserc.yml (no longer needed)

Signed-off-by: Alexander Mohr <alexander.m.mohr@mercedes-benz.com>
@alexmohr alexmohr changed the title chore: update copyright header year refactor: replace Apache SkyWalking Eyes with FSFE REUSE too Feb 13, 2026
@alexmohr alexmohr marked this pull request as ready for review February 13, 2026 13:43
@alexmohr alexmohr changed the title refactor: replace Apache SkyWalking Eyes with FSFE REUSE too refactor: replace Apache SkyWalking Eyes with FSFE REUSE tool Feb 14, 2026
@alexmohr alexmohr merged commit 067e07b into main Feb 14, 2026
2 checks passed
@alexmohr alexmohr deleted the chore/update-year branch February 14, 2026 09:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants