Skip to content

Refresh and enforce license header check - #51

Open
C-Achard wants to merge 1 commit into
cy/pre-commit-fixesfrom
cy/license-header-check
Open

C-Achard wants to merge 1 commit into
cy/pre-commit-fixesfrom
cy/license-header-check

Conversation

@C-Achard

@C-Achard C-Achard commented Oct 14, 2026 •

Copy link
Copy Markdown
Member

Introduces a check/write split; important for upcoming additions as they have no header yet.

@C-Achard
C-Achard added this pull request to stack #52 October 14, 2026 08:22
@C-Achard C-Achard added enhancement New feature or request CI labels Oct 14, 2026
Add a local pre-commit hook that validates every file covered by `NOTICE.yml` has the expected license header. The new `tools/check_license_headers.py` script reuses the existing NOTICE traversal logic, reports files with missing or outdated headers, and keeps the check read-only so header updates still go through the dedicated update script.
@C-Achard
C-Achard force-pushed the cy/license-header-check branch from 45b5b72 to 2ff371c Compare October 14, 2026 08:36
@C-Achard C-Achard self-assigned this Oct 14, 2026
@C-Achard
C-Achard requested review from AlexEMG, MMathisLab and deruyter92 and a balanced review from Copilot October 14, 2026 08:54

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

The validator and hook integration are consistent with the existing header updater and CI workflow.

0 open findings

What changed in this PR

Adds a read-only license-header validator and integrates it into pre-commit workflows.

Changes:

  • Validates all files covered by NOTICE.yml.
  • Runs validation during pre-commit and manual CI stages.
File Description
tools/​check_license_headers.py Implements license-header validation.
.pre-commit-config.yaml Registers the validation hook.

🧠 Review effort: Balanced


💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CI enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants