|
| 1 | +# Licensed to the Apache Software Foundation (ASF) under one |
| 2 | +# or more contributor license agreements. See the NOTICE file |
| 3 | +# distributed with this work for additional information |
| 4 | +# regarding copyright ownership. The ASF licenses this file |
| 5 | +# to you under the Apache License, Version 2.0 (the |
| 6 | +# "License"); you may not use this file except in compliance |
| 7 | +# with 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, |
| 12 | +# software distributed under the License is distributed on an |
| 13 | +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
| 14 | +# KIND, either express or implied. See the License for the |
| 15 | +# specific language governing permissions and limitations |
| 16 | +# under the License. |
| 17 | + |
| 18 | +--- |
| 19 | +# https://pre-commit.com/#installation |
| 20 | +default_stages: [pre-commit, pre-push] |
| 21 | +default_language_version: |
| 22 | + python: python3 |
| 23 | +minimum_pre_commit_version: '3.2.0' |
| 24 | +repos: |
| 25 | + - repo: meta |
| 26 | + hooks: |
| 27 | + - id: identity |
| 28 | + name: run identity check |
| 29 | + - id: check-hooks-apply |
| 30 | + name: run check hooks apply |
| 31 | + - repo: https://github.com/pre-commit/pre-commit-hooks |
| 32 | + rev: v6.0.0 |
| 33 | + hooks: |
| 34 | + - id: check-illegal-windows-names |
| 35 | + name: run check-illegal-windows-names |
| 36 | + description: check for Windows-illegal file names |
| 37 | + - id: check-merge-conflict |
| 38 | + name: run check-merge-conflict |
| 39 | + description: check for merge conflict markers |
| 40 | + - id: check-vcs-permalinks |
| 41 | + - id: detect-aws-credentials |
| 42 | + args: [--allow-missing-credentials] |
| 43 | + - id: detect-private-key |
| 44 | + exclude: ^source/adminguide/virtual_machines\.rst$ |
| 45 | + - id: forbid-submodules |
| 46 | + - id: requirements-txt-fixer |
| 47 | + files: ^requirements\.txt$ |
0 commit comments