-
Notifications
You must be signed in to change notification settings - Fork 44
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
45 lines (41 loc) · 1.31 KB
/
.pre-commit-config.yaml
File metadata and controls
45 lines (41 loc) · 1.31 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# Copyright 2025 Chainguard, Inc.
# SPDX-License-Identifier: Apache-2.0
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
# Notes:
# - generated CODEOWNERS files don't have expected trailing whitespace, so we exclude them.
# - testdata is not expected to be valid or formatted, so we exclude it.
# - account_association.yaml uses some kind of weird YAML syntax that the linter doesn't understand.
exclude: |
(?x)^(
.*CODEOWNERS.*|
.*testdata/.*|
.*test_data/.*|
.*\.pem|
)$
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
args: ['--allow-multiple-documents']
- id: check-added-large-files
- id: check-merge-conflict
- id: check-case-conflict
- id: mixed-line-ending
- id: check-json
- id: check-symlinks
- id: destroyed-symlinks
- id: fix-byte-order-marker
# TODO: this repo is deprecated, check other options or remove or create our own
- repo: https://github.com/dnephin/pre-commit-golang
rev: v0.5.1
hooks:
- id: go-fmt
- id: go-mod-tidy
- repo: https://github.com/antonbabenko/pre-commit-terraform
rev: v1.99.5
hooks:
- id: terraform_fmt