Files
claude-cookbooks/.pre-commit-config.yaml
Alex Notov 7938498146 refactor: simplify model validation to use Claude AI
Major simplification of CI/CD:
- Remove complex Python model validation scripts (400+ lines)
- Let Claude handle model validation intelligently via GitHub Actions
- Claude fetches latest models from docs.anthropic.com/en/docs/about-claude/models/overview.md
- Add comprehensive notebook validation script for local testing
  - Interactive dashboard with progress tracking
  - Auto-fix for deprecated models
  - GitHub issue export format
  - Idempotent with state persistence
- Simplify CI to use single Python version (3.11)
- Update workflows to use Claude for all intelligent validation

Benefits:
- No more hardcoded model lists to maintain
- Claude understands context (e.g., educational examples)
- 50% faster CI (removed matrix strategy)
- Single source of truth for models (docs site)
2025-09-07 17:27:34 -06:00

18 lines
471 B
YAML

repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.12.12
hooks:
- id: ruff
types_or: [python, pyi, jupyter]
args: ['--fix']
- id: ruff-format
types_or: [python, pyi, jupyter]
- repo: local
hooks:
- id: validate-notebooks
name: Validate notebook structure
entry: python scripts/validate_notebooks.py
language: python
files: '\.ipynb$'
pass_filenames: false