|
| 1 | +# |
| 2 | +# Licensed to the Apache Software Foundation (ASF) under one or more |
| 3 | +# contributor license agreements. See the NOTICE file distributed with |
| 4 | +# this work for additional information regarding copyright ownership. |
| 5 | +# The ASF licenses this file to You under the Apache License, Version 2.0 |
| 6 | +# (the "License"); you may not use this file except in compliance with |
| 7 | +# the License. You may obtain a copy of the License at |
| 8 | +# |
| 9 | +# http://www.apache.org/licenses/LICENSE-2.0 |
| 10 | +# |
| 11 | +# Unless required by applicable law or agreed to in writing, software |
| 12 | +# distributed under the License is distributed on an "AS IS" BASIS, |
| 13 | +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 14 | +# See the License for the specific language governing permissions and |
| 15 | +# limitations under the License. |
| 16 | +# |
| 17 | +--- |
| 18 | +default_stages: [commit, push] |
| 19 | +default_language_version: |
| 20 | + # force all unspecified Python hooks to run python3 |
| 21 | + python: python3 |
| 22 | +minimum_pre_commit_version: "1.20.0" |
| 23 | +repos: |
| 24 | + - repo: meta |
| 25 | + hooks: |
| 26 | + - id: identity |
| 27 | + - id: check-hooks-apply |
| 28 | + - repo: https://github.com/pre-commit/pre-commit-hooks |
| 29 | + rev: v3.4.0 |
| 30 | + hooks: |
| 31 | + - id: check-added-large-files |
| 32 | + # - id: check-ast |
| 33 | + # - id: check-builtin-literals |
| 34 | + - id: check-case-conflict |
| 35 | + - id: check-docstring-first |
| 36 | + - id: check-executables-have-shebangs |
| 37 | + # - id: check-json |
| 38 | + - id: check-merge-conflict |
| 39 | + - id: check-xml |
| 40 | + # - id: check-yaml |
| 41 | + # - id: debug-statements |
| 42 | + # - id: end-of-file-fixer |
| 43 | + # - id: fix-byte-order-marker |
| 44 | + - id: mixed-line-ending |
| 45 | + # - id: pretty-format-json |
| 46 | + # - id: trailing-whitespace |
| 47 | + # - repo: https://github.com/psf/black |
| 48 | + # rev: 20.8b1 |
| 49 | + # hooks: |
| 50 | + # - id: black |
| 51 | + # name: Run black on Python files |
| 52 | + # - repo: https://github.com/asottile/dead |
| 53 | + # rev: v1.4.0 |
| 54 | + # hooks: |
| 55 | + # - id: dead |
| 56 | + # name: Dead simple python dead code detection |
| 57 | + # - repo: https://github.com/asottile/reorder_python_imports |
| 58 | + # rev: v2.4.0 |
| 59 | + # hooks: |
| 60 | + # - id: reorder-python-imports |
| 61 | + # - repo: https://github.com/jumanjihouse/pre-commit-hooks |
| 62 | + # rev: 2.1.5 |
| 63 | + # hooks: |
| 64 | + # - id: shellcheck |
| 65 | + # - repo: git://github.com/Lucas-C/pre-commit-hooks |
| 66 | + # rev: v1.1.9 |
| 67 | + # hooks: |
| 68 | + # - id: forbid-tabs |
| 69 | + # - id: remove-tabs |
| 70 | + - repo: https://github.com/pre-commit/pygrep-hooks |
| 71 | + rev: v1.8.0 |
| 72 | + hooks: |
| 73 | + - id: python-check-mock-methods |
| 74 | + - id: python-no-eval |
| 75 | + - id: python-no-log-warn |
| 76 | + - repo: https://github.com/igorshubovych/markdownlint-cli |
| 77 | + rev: v0.27.1 |
| 78 | + hooks: |
| 79 | + - id: markdownlint |
| 80 | + name: Run markdownlint |
| 81 | + - repo: https://github.com/adrienverge/yamllint |
| 82 | + rev: v1.26.0 |
| 83 | + hooks: |
| 84 | + - id: yamllint |
| 85 | + name: Check YAML files with yamllint |
| 86 | + entry: yamllint --strict . |
| 87 | + # - repo: https://github.com/PyCQA/bandit |
| 88 | + # rev: 1.7.0 |
| 89 | + # hooks: |
| 90 | + # - id: bandit |
| 91 | + # - repo: https://gitlab.com/pycqa/flake8 |
| 92 | + # rev: 3.8.4 |
| 93 | + # hooks: |
| 94 | + # - id: flake8 |
0 commit comments