|
| 1 | +repos: |
| 2 | +- repo: https://github.com/pre-commit/pre-commit-hooks |
| 3 | + rev: v4.0.1 |
| 4 | + hooks: |
| 5 | + - id: check-merge-conflict |
| 6 | + - id: debug-statements |
| 7 | + - id: end-of-file-fixer |
| 8 | +- repo: https://github.com/asottile/reorder_python_imports |
| 9 | + rev: v2.6.0 |
| 10 | + hooks: |
| 11 | + - id: reorder-python-imports |
| 12 | + types: [python] |
| 13 | +- repo: https://github.com/pre-commit/pre-commit-hooks |
| 14 | + rev: v4.0.1 |
| 15 | + hooks: |
| 16 | + - id: check-added-large-files |
| 17 | + args: ['--maxkb=100'] |
| 18 | + - id: check-case-conflict |
| 19 | + - id: check-merge-conflict |
| 20 | + - id: check-vcs-permalinks |
| 21 | + - id: check-yaml |
| 22 | + - id: debug-statements |
| 23 | + - id: end-of-file-fixer |
| 24 | + - id: fix-byte-order-marker |
| 25 | + - id: mixed-line-ending |
| 26 | + - id: no-commit-to-branch |
| 27 | + args: [--branch, main] |
| 28 | + - id: trailing-whitespace |
| 29 | +- repo: https://github.com/pre-commit/pygrep-hooks |
| 30 | + rev: v1.9.0 |
| 31 | + hooks: |
| 32 | + - id: python-check-blanket-noqa |
| 33 | + - id: python-check-mock-methods |
| 34 | + - id: python-no-eval |
| 35 | + - id: python-no-log-warn |
| 36 | + - id: python-use-type-annotations |
| 37 | + - id: rst-backticks |
| 38 | + - id: rst-directive-colons |
| 39 | + - id: rst-inline-touching-normal |
| 40 | + - id: text-unicode-replacement-char |
| 41 | +- repo: https://github.com/asottile/blacken-docs |
| 42 | + rev: v1.12.0 |
| 43 | + hooks: |
| 44 | + - id: blacken-docs |
| 45 | + additional_dependencies: [black] |
| 46 | + types: [rst] |
| 47 | +- repo: https://github.com/psf/black |
| 48 | + rev: 21.12b0 |
| 49 | + hooks: |
| 50 | + - id: black |
| 51 | + types: [python] |
| 52 | +- repo: https://github.com/PyCQA/flake8 |
| 53 | + rev: 4.0.1 |
| 54 | + hooks: |
| 55 | + - id: flake8 |
| 56 | + types: [python] |
| 57 | + additional_dependencies: [ |
| 58 | + flake8-alfred, |
| 59 | + flake8-bugbear, |
| 60 | + flake8-builtins, |
| 61 | + flake8-comprehensions, |
| 62 | + flake8-docstrings, |
| 63 | + flake8-eradicate, |
| 64 | + flake8-print, |
| 65 | + flake8-pytest-style, |
| 66 | + flake8-todo, |
| 67 | + flake8-typing-imports, |
| 68 | + flake8-unused-arguments, |
| 69 | + pep8-naming, |
| 70 | + pydocstyle, |
| 71 | + Pygments, |
| 72 | + ] |
| 73 | +- repo: https://github.com/PyCQA/doc8 |
| 74 | + rev: 0.10.1 |
| 75 | + hooks: |
| 76 | + - id: doc8 |
| 77 | +- repo: meta |
| 78 | + hooks: |
| 79 | + - id: check-hooks-apply |
| 80 | + - id: check-useless-excludes |
| 81 | + # - id: identity # Prints all files passed to pre-commits. Debugging. |
| 82 | +- repo: https://github.com/mgedmin/check-manifest |
| 83 | + rev: "0.47" |
| 84 | + hooks: |
| 85 | + - id: check-manifest |
| 86 | +- repo: https://github.com/PyCQA/doc8 |
| 87 | + rev: 0.10.1 |
| 88 | + hooks: |
| 89 | + - id: doc8 |
| 90 | +- repo: https://github.com/asottile/setup-cfg-fmt |
| 91 | + rev: v1.20.0 |
| 92 | + hooks: |
| 93 | + - id: setup-cfg-fmt |
| 94 | +- repo: https://github.com/econchick/interrogate |
| 95 | + rev: 1.5.0 |
| 96 | + hooks: |
| 97 | + - id: interrogate |
| 98 | + args: [-v, --fail-under=20] |
| 99 | + exclude: ^(docs|setup\.py) |
| 100 | +- repo: https://github.com/codespell-project/codespell |
| 101 | + rev: v2.1.0 |
| 102 | + hooks: |
| 103 | + - id: codespell |
| 104 | +- repo: https://github.com/asottile/pyupgrade |
| 105 | + rev: v2.31.0 |
| 106 | + hooks: |
| 107 | + - id: pyupgrade |
| 108 | + args: [--py37-plus] |
0 commit comments