|
| 1 | +default_language_version: |
| 2 | + python: python3.12 |
| 3 | +fail_fast: true |
| 4 | +repos: |
| 5 | + - repo: https://github.com/astral-sh/ruff-pre-commit |
| 6 | + rev: v0.9.3 |
| 7 | + hooks: |
| 8 | + # Run the linter. |
| 9 | + - id: ruff |
| 10 | + types_or: [python, jupyter, pyi] |
| 11 | + args: [--fix] |
| 12 | + |
| 13 | + # Run the formatter. |
| 14 | + - id: ruff-format |
| 15 | + types_or: [python, jupyter, pyi] |
| 16 | + |
| 17 | + - repo: https://github.com/kynan/nbstripout |
| 18 | + rev: 0.8.1 |
| 19 | + hooks: |
| 20 | + - id: nbstripout |
| 21 | + |
| 22 | + - repo: https://github.com/pre-commit/pre-commit-hooks |
| 23 | + rev: v5.0.0 |
| 24 | + hooks: |
| 25 | + - id: trailing-whitespace |
| 26 | + exclude: tests/ |
| 27 | + exclude_types: [mdx, pyi] |
| 28 | + - id: check-yaml |
| 29 | + - id: end-of-file-fixer |
| 30 | + files: .*/expected_diff.patch |
| 31 | + - id: check-merge-conflict |
| 32 | + |
| 33 | + - repo: https://github.com/python-jsonschema/check-jsonschema |
| 34 | + rev: 0.31.0 |
| 35 | + hooks: |
| 36 | + - id: check-github-workflows |
| 37 | + - id: check-github-actions |
| 38 | + args: ["--verbose"] |
| 39 | + |
| 40 | + - repo: https://github.com/mxr/sync-pre-commit-deps |
| 41 | + rev: v0.0.3 |
| 42 | + hooks: |
| 43 | + - id: sync-pre-commit-deps |
| 44 | + |
| 45 | + - repo: https://github.com/codespell-project/codespell |
| 46 | + rev: v2.4.0 |
| 47 | + hooks: |
| 48 | + - id: codespell |
| 49 | + additional_dependencies: |
| 50 | + - tomli |
| 51 | + files: "docs/.*/.*.mdx" |
| 52 | + |
| 53 | + - repo: https://github.com/fpgmaas/deptry.git |
| 54 | + rev: "0.23.0" |
| 55 | + hooks: |
| 56 | + - id: deptry |
| 57 | + pass_filenames: false |
| 58 | + always_run: true |
| 59 | + entry: bash -c "uv run --frozen --all-extras --dev deptry src --ignore DEP001" |
| 60 | + - repo: "local" |
| 61 | + hooks: |
| 62 | + - id: disallowed-words-check |
| 63 | + name: Check for disallowed words |
| 64 | + entry: scripts/disallowed-words-check.sh |
| 65 | + language: script |
| 66 | + files: '' # Check all files |
| 67 | + - repo: https://github.com/renovatebot/pre-commit-hooks |
| 68 | + rev: 39.120.4 |
| 69 | + hooks: |
| 70 | + - id: renovate-config-validator |
| 71 | + - repo: https://github.com/astral-sh/uv-pre-commit |
| 72 | + rev: "0.5.24" |
| 73 | + hooks: |
| 74 | + - id: uv-lock |
| 75 | + entry: bash -c "uv lock --frozen" |
0 commit comments