|
| 1 | +repos: |
| 2 | +- repo: https://github.com/pre-commit/pre-commit-hooks |
| 3 | + rev: v4.0.1 |
| 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 | + exclude: "{{cookiecutter.project_slug}}/environment.yml" |
| 12 | + - id: debug-statements |
| 13 | + - id: end-of-file-fixer |
| 14 | + - id: fix-byte-order-marker |
| 15 | + - id: forbid-new-submodules |
| 16 | + - id: mixed-line-ending |
| 17 | + - id: no-commit-to-branch |
| 18 | + args: [--branch, main] |
| 19 | + - id: trailing-whitespace |
| 20 | +- repo: https://github.com/pre-commit/pygrep-hooks |
| 21 | + rev: v1.9.0 |
| 22 | + hooks: |
| 23 | + - id: python-check-blanket-noqa |
| 24 | + - id: python-check-mock-methods |
| 25 | + - id: python-no-eval |
| 26 | + - id: python-no-log-warn |
| 27 | + - id: python-use-type-annotations |
| 28 | + - id: rst-backticks |
| 29 | + - id: rst-directive-colons |
| 30 | + - id: rst-inline-touching-normal |
| 31 | + - id: text-unicode-replacement-char |
| 32 | +- repo: https://github.com/asottile/pyupgrade |
| 33 | + rev: v2.29.1 |
| 34 | + hooks: |
| 35 | + - id: pyupgrade |
| 36 | + args: [--py36-plus] |
| 37 | +- repo: https://github.com/asottile/reorder_python_imports |
| 38 | + rev: v2.6.0 |
| 39 | + hooks: |
| 40 | + - id: reorder-python-imports |
| 41 | +- repo: https://github.com/asottile/setup-cfg-fmt |
| 42 | + rev: v1.20.0 |
| 43 | + hooks: |
| 44 | + - id: setup-cfg-fmt |
| 45 | +- repo: https://github.com/psf/black |
| 46 | + rev: 21.12b0 |
| 47 | + hooks: |
| 48 | + - id: black |
| 49 | +- repo: https://github.com/asottile/blacken-docs |
| 50 | + rev: v1.12.0 |
| 51 | + hooks: |
| 52 | + - id: blacken-docs |
| 53 | + additional_dependencies: [black] |
| 54 | +- repo: https://github.com/PyCQA/flake8 |
| 55 | + rev: 4.0.1 |
| 56 | + hooks: |
| 57 | + - id: flake8 |
| 58 | + additional_dependencies: [ |
| 59 | + flake8-alfred, |
| 60 | + flake8-bugbear, |
| 61 | + flake8-builtins, |
| 62 | + flake8-comprehensions, |
| 63 | + flake8-docstrings, |
| 64 | + flake8-eradicate, |
| 65 | + flake8-print, |
| 66 | + flake8-pytest-style, |
| 67 | + flake8-todo, |
| 68 | + flake8-typing-imports, |
| 69 | + flake8-unused-arguments, |
| 70 | + pep8-naming, |
| 71 | + pydocstyle, |
| 72 | + Pygments, |
| 73 | + ] |
| 74 | +- repo: https://github.com/PyCQA/doc8 |
| 75 | + rev: 0.10.1 |
| 76 | + hooks: |
| 77 | + - id: doc8 |
| 78 | +- repo: https://github.com/econchick/interrogate |
| 79 | + rev: 1.5.0 |
| 80 | + hooks: |
| 81 | + - id: interrogate |
| 82 | + args: [-v, --fail-under=40, "{{cookiecutter.project_slug}}"] |
| 83 | + pass_filenames: false |
| 84 | +- repo: https://github.com/codespell-project/codespell |
| 85 | + rev: v2.1.0 |
| 86 | + hooks: |
| 87 | + - id: codespell |
| 88 | +- repo: https://github.com/guilatrova/tryceratops |
| 89 | + rev: v1.0.0 |
| 90 | + hooks: |
| 91 | + - id: tryceratops |
| 92 | +- repo: https://github.com/pre-commit/mirrors-mypy |
| 93 | + rev: 'v0.910-1' |
| 94 | + hooks: |
| 95 | + - id: mypy |
| 96 | + args: [ |
| 97 | + --no-strict-optional, |
| 98 | + --ignore-missing-imports, |
| 99 | + ] |
| 100 | + pass_filenames: false |
| 101 | + language_version: "3.9" |
| 102 | +- repo: meta |
| 103 | + hooks: |
| 104 | + - id: check-hooks-apply |
| 105 | + - id: check-useless-excludes |
| 106 | + # - id: identity # Prints all files passed to pre-commits. Debugging. |
0 commit comments