|
| 1 | +repos: |
| 2 | + - repo: https://github.com/pre-commit/pre-commit-hooks |
| 3 | + rev: v6.0.0 # Use the ref you want to point at |
| 4 | + hooks: |
| 5 | + - id: trailing-whitespace |
| 6 | + - id: check-ast |
| 7 | + - id: check-builtin-literals |
| 8 | + - id: check-docstring-first |
| 9 | + - id: check-executables-have-shebangs |
| 10 | + - id: debug-statements |
| 11 | + - id: end-of-file-fixer |
| 12 | + - id: mixed-line-ending |
| 13 | + args: [--fix=lf] |
| 14 | + - id: fix-byte-order-marker |
| 15 | + - id: check-merge-conflict |
| 16 | + - id: check-symlinks |
| 17 | + - id: detect-private-key |
| 18 | + - id: check-yaml |
| 19 | + args: [--unsafe] |
| 20 | + - id: check-toml |
| 21 | + |
| 22 | + - repo: https://github.com/astral-sh/uv-pre-commit |
| 23 | + rev: 0.8.23 |
| 24 | + hooks: |
| 25 | + - id: uv-lock |
| 26 | + |
| 27 | + - repo: https://github.com/astral-sh/ruff-pre-commit |
| 28 | + rev: 'v0.13.3' |
| 29 | + hooks: |
| 30 | + - id: ruff-check |
| 31 | + args: [--fix, --exit-non-zero-on-fix] |
| 32 | + types_or: [python, jupyter] |
| 33 | + - id: ruff-format |
| 34 | + types_or: [python, jupyter] |
| 35 | + |
| 36 | + - repo: https://github.com/pre-commit/mirrors-mypy |
| 37 | + rev: v1.18.2 |
| 38 | + hooks: |
| 39 | + - id: mypy |
| 40 | + entry: python3 -m mypy --config-file pyproject.toml |
| 41 | + language: system |
| 42 | + types: [python] |
| 43 | + exclude: "tests" |
| 44 | + |
| 45 | + - repo: https://github.com/crate-ci/typos |
| 46 | + rev: v1 |
| 47 | + hooks: |
| 48 | + - id: typos |
| 49 | + args: [] |
| 50 | + |
| 51 | +ci: |
| 52 | + autofix_commit_msg: | |
| 53 | + [pre-commit.ci] Add auto fixes from pre-commit.com hooks |
| 54 | +
|
| 55 | + for more information, see https://pre-commit.ci |
| 56 | + autofix_prs: true |
| 57 | + autoupdate_branch: '' |
| 58 | + autoupdate_commit_msg: '[pre-commit.ci] pre-commit autoupdate' |
| 59 | + autoupdate_schedule: weekly |
| 60 | + skip: [pytest,doctest,mypy] |
| 61 | + submodules: false |
0 commit comments