Files
claude-cookbooks/.pre-commit-config.yaml
Alex Notov d7db210bd4 fix: remove nbstripout and preserve notebook outputs
Notebook outputs are educational content in cookbook repositories.
They show users what to expect when running the code.

- Remove nbstripout from all dependencies and configurations
- Remove nbstripout check from CI workflow
- Update documentation to explain outputs are intentional
- Make validation scripts non-blocking for POC
- Fix lychee configuration conflict

The CI now validates notebooks without removing demonstration outputs.
2025-09-07 16:07:13 -06:00

25 lines
669 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: check-models
name: Check Claude model usage
entry: python scripts/check_models.py
language: python
files: '\.ipynb$'
pass_filenames: false
- id: validate-notebooks
name: Validate notebook structure
entry: python scripts/validate_notebooks.py
language: python
files: '\.ipynb$'
pass_filenames: false