provide-testkit 2026-03-22
Add pre-commit config and fix SPDX scripts and expired test certs
4 files · 117+ · 79-

Pre-commit configuration

1 file changed
  • .pre-commit-config.yaml New 44-line pre-commit config with ruff-check (--fix), ruff-format, standard hooks (trailing whitespace, end-of-file, check-yaml/toml/json, detect-private-key excluding crypto fixtures), and mypy strict
  • Added pre-commit configuration with ruff linting/formatting, standard file validation hooks, private key detection (excluding test fixtures), and mypy type checking instantiate behavioral
    1 file
    • .pre-commit-config.yaml

SPDX script lint fixes

2 files changed
  • add_spdx_headers.py Replaced Tuple with tuple, renamed ambiguous loop variable l to ln, extracted _check_existing_header helper to reduce complexity, reformatted argument parser
  • validate_spdx_headers.py Reformatted string quotes, simplified should_skip with bool() return
  • Applied ruff fixes to SPDX scripts: replaced deprecated typing.Tuple, fixed E741 ambiguous variable name, reduced C901 complexity via helper extraction, simplified SIM103 return remediate internal
    2 files
    • add_spdx_headers.py
    • validate_spdx_headers.py

Refresh expired test certificates

1 file changed
  • fixtures.py Replaced expired test certificates (expired 2026-02-05) with new certificates valid until 2033-03-03
  • Regenerated client and server test certificates that had expired on 2026-02-05, new certs valid until 2033-03-03 remediate behavioral
    1 file
    • fixtures.py