-
Notifications
You must be signed in to change notification settings - Fork 90
/
.pre-commit-config.yaml
41 lines (41 loc) · 1.25 KB
/
.pre-commit-config.yaml
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
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v3.2.0
hooks:
- id: check-merge-conflict
- id: detect-aws-credentials
args: [--allow-missing-credentials]
- id: detect-private-key
exclude: 'testdata/.*|test_integration/common_assets/certificates/.*|docker-compose-deployment/certificates/.*'
- id: check-yaml
exclude: 'test_integration/common_assets/docker_compose_files/.*'
- id: check-json
- repo: https://github.com/astral-sh/ruff-pre-commit
# Ruff version.
rev: v0.2.1
hooks:
# Run the linter.
- id: ruff
# Run the formatter.
- id: ruff-format
- repo: local
hooks:
- id: extra-credential-checking
name: Extra Credential Checking
entry: .gitprecommit/aws_key_checker.sh
language: script
- id: go-fmt
name: go fmt
entry: .gitprecommit/go_fmt.sh
language: script
- id: go-mod-tidy-check
name: make modtidy check-diff
entry: .gitprecommit/go_mod_tidy_check.sh
language: script
- id: "go-test-build-header"
name: "Go test '//go:build' header present"
entry: ".gitprecommit/go_test_build_header.sh"
exclude: 'test_integration/.*|'
language: "script"