|
| 1 | +default_language_version: |
| 2 | + python: python3 |
| 3 | +repos: |
| 4 | + - repo: https://github.com/pre-commit/pre-commit-hooks |
| 5 | + rev: v5.0.0 |
| 6 | + hooks: |
| 7 | + - id: check-added-large-files |
| 8 | + exclude: | |
| 9 | + (?x)^( |
| 10 | + examples/.*| |
| 11 | + robin_output/.* |
| 12 | + )$ |
| 13 | + - id: check-byte-order-marker |
| 14 | + - id: check-case-conflict |
| 15 | + - id: check-merge-conflict |
| 16 | + - id: check-shebang-scripts-are-executable |
| 17 | + - id: check-symlinks |
| 18 | + - id: check-toml |
| 19 | + - id: check-yaml |
| 20 | + - id: debug-statements |
| 21 | + - id: detect-private-key |
| 22 | + - id: end-of-file-fixer |
| 23 | + - id: mixed-line-ending |
| 24 | + - id: trailing-whitespace |
| 25 | + - repo: https://github.com/astral-sh/ruff-pre-commit |
| 26 | + rev: v0.11.2 |
| 27 | + hooks: |
| 28 | + - id: ruff |
| 29 | + args: [--fix, --exit-non-zero-on-fix] |
| 30 | + - repo: https://github.com/psf/black-pre-commit-mirror |
| 31 | + rev: 25.1.0 |
| 32 | + hooks: |
| 33 | + - id: black-jupyter |
| 34 | + - repo: https://github.com/rbubley/mirrors-prettier |
| 35 | + rev: v3.5.3 |
| 36 | + hooks: |
| 37 | + - id: prettier |
| 38 | + exclude: robin_output |
| 39 | + - repo: https://github.com/pappasam/toml-sort |
| 40 | + rev: v0.24.2 |
| 41 | + hooks: |
| 42 | + - id: toml-sort-fix |
| 43 | + - repo: https://github.com/crate-ci/typos |
| 44 | + rev: v1.30.3 |
| 45 | + hooks: |
| 46 | + - id: typos |
| 47 | + - repo: https://github.com/jumanjihouse/pre-commit-hooks |
| 48 | + rev: 3.0.0 |
| 49 | + hooks: |
| 50 | + - id: check-mailmap |
| 51 | + - repo: https://github.com/henryiii/validate-pyproject-schema-store |
| 52 | + rev: 2025.03.24 |
| 53 | + hooks: |
| 54 | + - id: validate-pyproject |
| 55 | + - repo: https://github.com/astral-sh/uv-pre-commit |
| 56 | + rev: 0.6.10 |
| 57 | + hooks: |
| 58 | + - id: uv-lock |
| 59 | + - repo: https://github.com/adamchainz/blacken-docs |
| 60 | + rev: 1.19.1 |
| 61 | + hooks: |
| 62 | + - id: blacken-docs |
| 63 | + exclude: \.md$ # The generated markdown files are being blackened by jupytext |
| 64 | + - repo: https://github.com/srstevenson/nb-clean |
| 65 | + rev: 4.0.1 |
| 66 | + hooks: |
| 67 | + - id: nb-clean |
| 68 | + args: [--preserve-cell-outputs, --remove-empty-cells] |
| 69 | + - repo: https://github.com/mwouts/jupytext |
| 70 | + rev: v1.17.0rc2 |
| 71 | + hooks: |
| 72 | + - id: jupytext |
| 73 | + args: [--to, md, --pipe, black] |
| 74 | + additional_dependencies: [black] |
| 75 | + files: ^docs/.*\.ipynb$ |
| 76 | + - repo: https://github.com/jsh9/markdown-toc-creator |
| 77 | + rev: 0.0.10 |
| 78 | + hooks: |
| 79 | + - id: markdown-toc-creator |
| 80 | + - repo: https://github.com/pre-commit/mirrors-mypy |
| 81 | + rev: v1.15.0 |
| 82 | + hooks: |
| 83 | + - id: mypy |
| 84 | + args: [--pretty, --ignore-missing-imports] |
| 85 | + additional_dependencies: |
| 86 | + - anthropic |
| 87 | + - fhaviary |
| 88 | + - fhlmi |
| 89 | + - openai>=1 # Match pyproject.toml |
| 90 | + - pandas-stubs |
| 91 | + - pydantic>=2 # Match pyproject.toml |
| 92 | + - types-aiofiles |
| 93 | + - types-PyYAML |
| 94 | + - types-setuptools |
| 95 | + - types-tqdm |
0 commit comments