|
| 1 | +# Copyright 2026 Google LLC |
| 2 | +# |
| 3 | +# Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 | +# you may not use this file except in compliance with the License. |
| 5 | +# You may obtain a copy of the License at |
| 6 | +# |
| 7 | +# http://www.apache.org/licenses/LICENSE-2.0 |
| 8 | +# |
| 9 | +# Unless required by applicable law or agreed to in writing, software |
| 10 | +# distributed under the License is distributed on an "AS IS" BASIS, |
| 11 | +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 | +# See the License for the specific language governing permissions and |
| 13 | +# limitations under the License. |
| 14 | + |
| 15 | +exclude: '^(\.github/|\.vscode/|node_modules/).*|CODE_OF_CONDUCT\.md|CHANGELOG\.md' |
| 16 | + |
| 17 | +repos: |
| 18 | + - repo: https://github.com/pre-commit/pre-commit-hooks |
| 19 | + rev: v6.0.0 |
| 20 | + hooks: |
| 21 | + - id: trailing-whitespace |
| 22 | + - id: end-of-file-fixer |
| 23 | + - id: check-yaml |
| 24 | + args: [--unsafe] |
| 25 | + - id: check-json |
| 26 | + - id: check-added-large-files |
| 27 | + - id: check-shebang-scripts-are-executable |
| 28 | + - id: check-executables-have-shebangs |
| 29 | + - repo: https://github.com/astral-sh/ruff-pre-commit |
| 30 | + rev: v0.14.13 |
| 31 | + hooks: |
| 32 | + - id: ruff |
| 33 | + args: [--fix, --exit-non-zero-on-fix, --ignore, "D,E501"] |
| 34 | + - id: ruff-format |
| 35 | + - repo: https://github.com/pre-commit/mirrors-prettier |
| 36 | + rev: v4.0.0-alpha.8 |
| 37 | + hooks: |
| 38 | + - id: prettier |
| 39 | + files: \.(md|yaml|yml|json)$ |
| 40 | + - repo: https://github.com/koalaman/shellcheck-precommit |
| 41 | + rev: v0.10.0 |
| 42 | + hooks: |
| 43 | + - id: shellcheck |
| 44 | + - repo: https://github.com/codespell-project/codespell |
| 45 | + rev: v2.4.1 |
| 46 | + hooks: |
| 47 | + - id: codespell |
| 48 | + args: ["-I", ".codespellignore"] |
0 commit comments