| name | quality-gate |
| description | Run the full Strategos-MCTS local quality gate before any commit or push: format check, lint, type check, tests with branch coverage, and a hardcoded-secret grep. Use whenever you are about to push, open a PR, or want CI/local parity. |
Quality Gate
Run the repo's CI-equivalent gate locally, in order. Stop at the first failure and fix before
continuing. Mirrors .github/workflows/ci.yml so green locally means green in CI.
black src/ tests/ --check --line-length 120
ruff check src/ tests/
mypy src/
pytest tests/ --cov=src --cov-report=term-missing --cov-fail-under=85
if git grep -nE "sk-[A-Za-z0-9]{20,}" -- src/ kubernetes/; then echo "FAIL: hardcoded key"; (exit 1); else echo "OK: no keys"; fi
Notes:
- Install deps first if missing:
pip install -e ".[dev,neural]".
- All tunables must come from
src/config/settings.py / src/config/constants.py — never hardcode.
- Unit tests must not make real network/API calls; mock all I/O.