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.yamlNew 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.pyReplace 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.pyNormalize quotes, reorder imports per isort, simplify should_skip to return bool(is_nearly_empty(...)) instead of if/return pattern.