justinmclean opened a new pull request, #514:
URL: https://github.com/apache/airflow-steward/pull/514

   ## Summary
   
   Adds check to the spec-validator: every .md file that carries YAML 
frontmatter must include '<\!-- SPDX-License-Identifier: Apache-2.0' before the 
opening --- delimiter. Files without frontmatter (README, overview) are skipped 
silently — no change to their handling.
   
   Adds validate_spdx_header() in __init__.py, plumbs it into validate_file(), 
updates the module docstring, and adds TestValidateSpdxHeader (7 tests) in the 
test suite. All 64 tests pass.
   
   Also fixes run-workspace-check.sh: on Apple Silicon Macs where git is an 
x86_64 binary (Rosetta), pre-commit hooks spawn x86_64 Python that cannot load 
arm64-compiled extensions (mypy, cffi). The script now probes for this 
condition at runtime and falls back to arch -arm64 python3 for the mypy and 
pytest checks.
   
   ## Type of change
   
   <!-- Tick all that apply. -->
   
   - [ ] Skill change (`.claude/skills/<name>/`) — eval fixtures updated below
   - [ ] Tool / bridge contract (`tools/<system>/*.md`)
   - [ ] Python package (`tools/*/` with `pyproject.toml`)
   - [ ] Groovy reference impl
   - [ ] Cross-cutting (RFC, AGENTS.md, sandbox, privacy-LLM)
   - [ ] Documentation (`docs/`, `README.md`, `CONTRIBUTING.md`)
   - [ ] Project template (`projects/_template/`)
   - [X] CI / dev loop (`prek`, workflows, validators)
   - [ ] Other:
   
   ## Test plan
   
   - [X] `prek run --all-files` passes
   - [ ] For Python packages touched: `uv run pytest` / `ruff check` / `mypy` 
passes
   - [ ] For Groovy bridges touched: command-line invocation tested end-to-end
   - [ ] For skill changes: eval suite passes for the affected skill
         (`PYTHONPATH=tools/skill-evals/src python3 -m skill_evals.runner 
tools/skill-evals/evals/<skill>/`)
   - [ ] For skill *behaviour* changes: a new or updated eval fixture is 
included in this PR
         (a regression test for the bug fixed / the behaviour added — see 
CONTRIBUTING.md)
   - [ ] Other:
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to