Skip to content

Replace pre-commit with prek - #929

Merged
Kane610 merged 1 commit into
masterfrom
copilot/replace-pre-commit-with-prek
Nov 30, 2026
Merged

Kane610 merged 1 commit into
masterfrom
copilot/replace-pre-commit-with-prek

Conversation

@Kane610

@Kane610 Kane610 commented Nov 30, 2026

Copy link
Copy Markdown
Owner

What does this PR do?

Replace pre-commit with prek for development hooks, including setup, dependency locking, and documentation. Keep using the existing .pre-commit-config.yaml configuration.

Architecture Layer(s)

  • Models (axis/models/)
  • Interfaces (axis/interfaces/)
  • Orchestration (axis/device.py, axis/interfaces/vapix.py)
  • Tests

Type of Change

  • New feature (handler, interface, model)
  • Bug fix (minimal, targeted)
  • Refactor (no behavior change)
  • Documentation

Related Issues

None.

Verification Checklist

  • uv run ruff check . passes
  • uv run ruff format --check . passes
  • uv run mypy axis passes
  • uv run pytest passes (coverage ≥95%)
  • New tests added for new code (100% coverage for new code)
  • Commit hooks modified files? If so, re-staged and re-ran checks
  • No unrelated code/formatting changes
  • Follows conventions: enum _missing_ fallback, input normalization, XML parsing guards

Notes for Reviewers

  • Full suite: uv run pytest — 1,639 passed, 100% coverage.
  • uv lock --check — passed.
  • uv run --locked --extra requirements-test --extra requirements-dev pytest -o addopts='' tests/test_tooling_safety.py -q — 15 passed.
  • uv run --locked --extra requirements-test --extra requirements-dev ruff check tests/test_tooling_safety.py — passed.
  • uv run --locked --extra requirements-dev prek validate-config .pre-commit-config.yaml — passed.
  • bash -n script/setup.sh — passed.
  • The existing setup test assertion was updated; no product-code behavior was added.
  • The advisory ty commit hook reported diagnostics in untouched files; it did not fail. The required Ruff, mypy, and test checks passed.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@Kane610
Kane610 merged commit 32fc800 into master Nov 30, 2026
7 checks passed
@Kane610
Kane610 deleted the copilot/replace-pre-commit-with-prek branch November 30, 2026 23:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant