Skip to content

Add local CI parity script with drift detection - #22

Merged
mehmetkr merged 1 commit into
mainfrom
ci-local-script
Dec 1, 2026
Merged

mehmetkr merged 1 commit into
mainfrom
ci-local-script

Conversation

@mehmetkr

@mehmetkr mehmetkr commented Dec 1, 2026

Copy link
Copy Markdown
Owner

Summary

  • Adds scripts/ci-local.sh that runs the same checks as CI (ruff, ruff format, mypy, pyright, pytest) via uv run
  • Includes drift detection that extracts uv run commands from ci.yml and fails if the local script is out of sync
  • Uses portable ERE (grep -oE) instead of PCRE for macOS compatibility

Context

PR #21 passed local ad-hoc checks but failed remote CI because pyright was omitted from the manual check sequence. This script eliminates that class of bug by being the sole pre-commit gate.

Test plan

  • bash scripts/ci-local.sh runs all 5 checks and passes
  • Drift detection correctly matches all uv run commands from ci.yml
  • Adversarial audit passed clean (multi-line block handling, macOS portability)

@mehmetkr
mehmetkr merged commit 05bb870 into main Dec 1, 2026
7 checks passed
@mehmetkr
mehmetkr deleted the ci-local-script branch December 1, 2026 08:37
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