|
| 1 | +--- |
| 2 | +default_stages: [commit, push] |
| 3 | +default_language_version: |
| 4 | + # force all unspecified Python hooks to run python3 |
| 5 | + python: python3 |
| 6 | +minimum_pre_commit_version: "1.20.0" |
| 7 | +repos: |
| 8 | + - repo: meta |
| 9 | + hooks: |
| 10 | + - id: identity |
| 11 | + - id: check-hooks-apply |
| 12 | + - repo: https://github.com/pre-commit/pre-commit-hooks |
| 13 | + rev: v3.4.0 |
| 14 | + hooks: |
| 15 | + - id: check-added-large-files |
| 16 | + # - id: check-ast |
| 17 | + # - id: check-builtin-literals |
| 18 | + - id: check-case-conflict |
| 19 | + - id: check-docstring-first |
| 20 | + - id: check-executables-have-shebangs |
| 21 | + # - id: check-json |
| 22 | + - id: check-merge-conflict |
| 23 | + - id: check-xml |
| 24 | + # - id: check-yaml |
| 25 | + # - id: debug-statements |
| 26 | + # - id: end-of-file-fixer |
| 27 | + - id: fix-byte-order-marker |
| 28 | + - id: mixed-line-ending |
| 29 | + # - id: pretty-format-json |
| 30 | + # - id: trailing-whitespace |
| 31 | + # - repo: https://github.com/psf/black |
| 32 | + # rev: 20.8b1 |
| 33 | + # hooks: |
| 34 | + # - id: black |
| 35 | + # name: Run black on Python files |
| 36 | + # - repo: https://github.com/asottile/dead |
| 37 | + # rev: v1.4.0 |
| 38 | + # hooks: |
| 39 | + # - id: dead |
| 40 | + # name: Dead simple python dead code detection |
| 41 | + # - repo: https://github.com/asottile/reorder_python_imports |
| 42 | + # rev: v2.4.0 |
| 43 | + # hooks: |
| 44 | + # - id: reorder-python-imports |
| 45 | + # - repo: https://github.com/jumanjihouse/pre-commit-hooks |
| 46 | + # rev: 2.1.5 |
| 47 | + # hooks: |
| 48 | + # - id: shellcheck |
| 49 | + # - repo: git://github.com/Lucas-C/pre-commit-hooks |
| 50 | + # rev: v1.1.9 |
| 51 | + # hooks: |
| 52 | + # - id: forbid-tabs |
| 53 | + # - id: remove-tabs |
| 54 | + - repo: https://github.com/pre-commit/pygrep-hooks |
| 55 | + rev: v1.8.0 |
| 56 | + hooks: |
| 57 | + - id: python-check-mock-methods |
| 58 | + - id: python-no-eval |
| 59 | + - id: python-no-log-warn |
| 60 | + - repo: https://github.com/igorshubovych/markdownlint-cli |
| 61 | + rev: v0.27.1 |
| 62 | + hooks: |
| 63 | + - id: markdownlint |
| 64 | + name: Run markdownlint |
| 65 | + # - repo: https://github.com/adrienverge/yamllint |
| 66 | + # rev: v1.26.0 |
| 67 | + # hooks: |
| 68 | + # - id: yamllint |
| 69 | + # name: Check YAML files with yamllint |
| 70 | + # entry: yamllint --strict . |
| 71 | + # types: [yaml] |
| 72 | + # - repo: https://github.com/PyCQA/bandit |
| 73 | + # rev: 1.7.0 |
| 74 | + # hooks: |
| 75 | + # - id: bandit |
| 76 | + # - repo: https://gitlab.com/pycqa/flake8 |
| 77 | + # rev: 3.8.4 |
| 78 | + # hooks: |
| 79 | + # - id: flake8 |
0 commit comments