| name | quality-gate |
| description | Runs and interprets TableCV quality checks with uv, Ruff, pytest, Bandit, pre-commit, and build. Use before commits, PRs, releases, or when the user asks to verify the package. |
| disable-model-invocation | true |
Quality Gate
Run from the repository root.
Fast Gate
make check-commit
make build
This checks formatting, lint, default tests, Bandit, and package build.
Full Local Gate
uv sync --all-groups
uv run ruff format --check .
uv run ruff check .
uv run pytest -q
uv run pytest --cov=tablecv --cov-report=term-missing
uv run bandit -c bandit.yaml -r tablecv
uv build
uv run pre-commit run --all-files
Integration Gate
make integration
Use only when OCR engine behavior, image fixtures, or external binaries matter. These tests may fail or skip when PaddleOCR, model downloads, or image assets are unavailable.
Troubleshooting
- If
uv lock fails, inspect dependency constraints before changing versions.
- If OCR integration tests skip, report the missing engine or fixture instead of claiming OCR coverage.
- If pre-commit reformats files, re-run the relevant gate after reviewing the diff.
- Never skip hooks or suppress findings without documenting why.