notebooklm-py-analysis/.pre-commit-config.yaml
Teng Lin 9bd715af0d feat: add ruff linter/formatter and fix Python 3.10 test compatibility
- Add ruff configuration to pyproject.toml with sensible defaults
- Add pre-commit hooks for ruff check and format
- Update CI to run ruff check and format verification on tests/
- Fix Python 3.10 mock.patch compatibility in CLI tests
  - Use importlib to get actual modules, bypassing shadowed click groups
  - Add get_cli_module() helper and update patch_client_for_module()
- Apply ruff formatting to all source and test files
- Move .claude/skills to gitignore (local-only skills)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-09 14:59:47 -05:00

7 lines
152 B
YAML

repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.8.6
hooks:
- id: ruff
args: [--fix]
- id: ruff-format