Run continuous integration checks locally before pushing.
Runs CI checks locally to catch failures before pushing to remote.
/plugin marketplace add Data-Wise/craft/plugin install data-wise-craft@Data-Wise/craftcode/Run continuous integration checks locally before pushing.
/craft:code:ci-local [options]
| Check | Command | Threshold |
|---|---|---|
| Lint | /craft:code:lint --strict | 0 errors |
| Tests | /craft:test:run | 100% pass |
| Coverage | /craft:code:coverage | 80% minimum |
| Security | /craft:code:deps-audit | No critical |
| Types | mypy/tsc/etc. | 0 errors |
| Docs | /craft:docs:validate | 0 errors |
--quick - Skip slow checks (coverage, security)--fix - Auto-fix issues where possible--verbose - Show detailed output--only <check> - Run specific check only# Full CI check
/craft:code:ci-local
# Quick check before commit
/craft:code:ci-local --quick
# Fix issues automatically
/craft:code:ci-local --fix
# Run only tests
/craft:code:ci-local --only tests
Running local CI checks...
[1/6] Lint ✓ Pass (0 issues)
[2/6] Type check ✓ Pass (0 errors)
[3/6] Tests ✓ Pass (42/42)
[4/6] Coverage ✓ Pass (87% > 80%)
[5/6] Security ✓ Pass (0 critical)
[6/6] Docs ✓ Pass (0 errors)
All checks passed! Safe to push.
Running local CI checks...
[1/6] Lint ✗ Fail (3 issues)
src/main.py:15 - trailing whitespace
src/api.py:42 - line too long
[2/6] Tests ✗ Fail (40/42)
FAILED test_auth.py::test_login
FAILED test_auth.py::test_logout
2 checks failed. Fix before pushing.
Run with --fix to auto-fix lint issues.
Works with:
/craft:code:ci-fix - Fix CI failures/craft:git:sync - Pre-push validation