|
| 1 | +# Learn more about this config here: https://pre-commit.com/ |
| 2 | + |
| 3 | +# To enable these pre-commit hooks run: `uv tool install pre-commit` |
| 4 | +# or `pipx install pre-commit` or `brew install pre-commit`, etc. |
| 5 | +# Then in the project root directory run `pre-commit install` |
| 6 | + |
| 7 | +repos: |
| 8 | + #- repo: https://github.com/pre-commit/pre-commit-hooks |
| 9 | + # rev: v6.0.0 |
| 10 | + # hooks: |
| 11 | + # - id: check-added-large-files |
| 12 | + # - id: check-ast |
| 13 | + # - id: check-builtin-literals |
| 14 | + # - id: check-case-conflict |
| 15 | + # - id: check-docstring-first |
| 16 | + # - id: check-executables-have-shebangs |
| 17 | + # - id: check-json |
| 18 | + # - id: check-merge-conflict |
| 19 | + # - id: check-shebang-scripts-are-executable |
| 20 | + # - id: check-symlinks |
| 21 | + # - id: check-toml |
| 22 | + # - id: check-vcs-permalinks |
| 23 | + # - id: check-xml |
| 24 | + # - id: check-yaml |
| 25 | + # - id: debug-statements |
| 26 | + # - id: destroyed-symlinks |
| 27 | + # - id: detect-private-key |
| 28 | + # - id: end-of-file-fixer |
| 29 | + # - id: file-contents-sorter |
| 30 | + # - id: fix-byte-order-marker |
| 31 | + # - id: forbid-new-submodules |
| 32 | + # - id: forbid-submodules |
| 33 | + # - id: mixed-line-ending |
| 34 | + # args: |
| 35 | + # - --fix=lf |
| 36 | + # - id: requirements-txt-fixer |
| 37 | + # - id: sort-simple-yaml |
| 38 | + # - id: trailing-whitespace |
| 39 | + |
| 40 | + - repo: https://github.com/codespell-project/codespell |
| 41 | + rev: v2.4.1 |
| 42 | + hooks: |
| 43 | + - id: codespell # See pyproject.toml for args |
| 44 | + additional_dependencies: |
| 45 | + - tomli |
| 46 | + |
| 47 | + - repo: https://github.com/pre-commit/mirrors-mypy |
| 48 | + rev: v1.17.1 |
| 49 | + hooks: |
| 50 | + - id: mypy |
| 51 | + |
| 52 | + - repo: https://github.com/astral-sh/ruff-pre-commit |
| 53 | + rev: v0.12.11 |
| 54 | + hooks: |
| 55 | + - id: ruff-check |
| 56 | + # - id: ruff-format |
0 commit comments