|
| 1 | +repos: |
| 2 | +- repo: https://github.com/pre-commit/pre-commit-hooks |
| 3 | + rev: v4.5.0 |
| 4 | + hooks: |
| 5 | + - id: check-added-large-files |
| 6 | + args: ['--maxkb=25'] |
| 7 | + - id: check-case-conflict |
| 8 | + - id: check-merge-conflict |
| 9 | + - id: check-vcs-permalinks |
| 10 | + - id: check-yaml |
| 11 | + - id: end-of-file-fixer |
| 12 | + - id: fix-byte-order-marker |
| 13 | + - id: mixed-line-ending |
| 14 | + - id: no-commit-to-branch |
| 15 | + args: [--branch, main] |
| 16 | +- repo: https://github.com/pre-commit/pygrep-hooks |
| 17 | + rev: v1.10.0 |
| 18 | + hooks: |
| 19 | + - id: python-check-blanket-noqa |
| 20 | + - id: python-check-mock-methods |
| 21 | + - id: python-no-eval |
| 22 | + - id: python-no-log-warn |
| 23 | + - id: python-use-type-annotations |
| 24 | + - id: text-unicode-replacement-char |
| 25 | +- repo: https://github.com/astral-sh/ruff-pre-commit |
| 26 | + rev: v0.3.4 |
| 27 | + hooks: |
| 28 | + - id: ruff |
| 29 | + - id: ruff-format |
| 30 | +- repo: https://github.com/dosisod/refurb |
| 31 | + rev: v2.0.0 |
| 32 | + hooks: |
| 33 | + - id: refurb |
| 34 | +- repo: https://github.com/executablebooks/mdformat |
| 35 | + rev: 0.7.17 |
| 36 | + hooks: |
| 37 | + - id: mdformat |
| 38 | + additional_dependencies: [ |
| 39 | + mdformat-myst, |
| 40 | + mdformat-black, |
| 41 | + mdformat-pyproject, |
| 42 | + ] |
| 43 | + files: (README\.md) |
| 44 | +# Conflicts with admonitions. |
| 45 | +# - repo: https://github.com/executablebooks/mdformat |
| 46 | +# rev: 0.7.17 |
| 47 | +# hooks: |
| 48 | +# - id: mdformat |
| 49 | +# additional_dependencies: [ |
| 50 | +# mdformat-gfm, |
| 51 | +# mdformat-black, |
| 52 | +# ] |
| 53 | +# args: [--wrap, "88"] |
| 54 | +- repo: https://github.com/codespell-project/codespell |
| 55 | + rev: v2.2.6 |
| 56 | + hooks: |
| 57 | + - id: codespell |
| 58 | +# - repo: https://github.com/pre-commit/mirrors-mypy |
| 59 | +# rev: 'v1.9.0' |
| 60 | +# hooks: |
| 61 | +# - id: mypy |
| 62 | +# args: [ |
| 63 | +# --no-strict-optional, |
| 64 | +# --ignore-missing-imports, |
| 65 | +# ] |
| 66 | +# additional_dependencies: [ |
| 67 | +# attrs, |
| 68 | +# cloudpickle, |
| 69 | +# loky, |
| 70 | +# "git+https://github.com/pytask-dev/pytask.git@main", |
| 71 | +# rich, |
| 72 | +# types-click, |
| 73 | +# types-setuptools, |
| 74 | +# ] |
| 75 | +# pass_filenames: false |
| 76 | +- repo: meta |
| 77 | + hooks: |
| 78 | + - id: check-hooks-apply |
| 79 | + - id: check-useless-excludes |
| 80 | + # - id: identity # Prints all files passed to pre-commits. Debugging. |
0 commit comments