ci-tooling 2026-03-22
Add pre-commit config and fix SPDX script lint issues
3 files · 74+ · 45-

Pre-commit configuration

1 file changed
  • .pre-commit-config.yaml New pre-commit config with ruff-check, ruff-format, and standard hooks (trailing-whitespace, end-of-file-fixer, check-yaml, check-toml, check-json, check-added-large-files, etc.).
  • Establishes automated code quality gates that run before every commit, enforcing ruff linting and formatting plus file hygiene checks across the repository. qualify behavioral
    1 file
    • .pre-commit-config.yaml

SPDX script lint fixes

2 files changed
  • add_spdx_headers.py Replace typing.Tuple with builtin tuple, normalize single to double quotes, extract _check_existing_header helper to reduce complexity (C901), rename loop variable to avoid E741, and reformat argument parser calls.
  • validate_spdx_headers.py Normalize quotes, reorder imports per isort, simplify should_skip to return bool(is_nearly_empty(...)) instead of if/return pattern.
  • These are mechanical lint fixes (E741, C901, SIM103) applied consistently across all repos using the canonical SPDX scripts. remediate internal
    2 files
    • add_spdx_headers.py
    • validate_spdx_headers.py