This repository was archived by the owner on Feb 9, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.pre-commit-config.yaml
66 lines (66 loc) · 1.96 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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
default_stages: [commit]
repos:
- repo: https://github.com/alessandrojcm/commitlint-pre-commit-hook
rev: 'v9.11.0'
hooks:
- id: commitlint
stages: [commit-msg]
additional_dependencies: ['@commitlint/config-conventional']
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: 'v4.5.0'
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
- id: check-added-large-files
- repo: https://github.com/koalaman/shellcheck-precommit
rev: v0.9.0
hooks:
- id: shellcheck
- repo: https://github.com/hadolint/hadolint
rev: v2.12.1-beta
hooks:
- id: hadolint-docker
- repo: https://github.com/pre-commit/mirrors-prettier
rev: 'v4.0.0-alpha.8'
hooks:
- id: prettier
exclude: 'go.mod|gen/ts|tsx|ts'
- repo: https://github.com/pre-commit/mirrors-eslint
rev: 'v8.56.0'
hooks:
- id: eslint
files: \.tsx?$
types: [file]
args: [--fix, --no-ignore]
exclude: 'gen/ts'
- repo: https://github.com/golangci/golangci-lint
rev: 'v1.55.2'
hooks:
- id: golangci-lint
args: ['--timeout', '3m0s']
exclude: 'gen/go'
- repo: https://github.com/segmentio/golines
rev: 'v0.12.1'
hooks:
- id: golines
- repo: https://github.com/bufbuild/buf
rev: v1.28.1
hooks:
- id: buf-format
- id: buf-lint
- repo: https://github.com/sqlfluff/sqlfluff
rev: 3.0.0a4
hooks:
- id: sqlfluff-fix
exclude: 'sql/migrations'
- repo: https://github.com/aquasecurity/tfsec
rev: v1.28.5
hooks:
- id: tfsec
- repo: https://github.com/codespell-project/codespell
rev: v2.2.6
hooks:
- id: codespell
additional_dependencies: ['tomli']
exclude: 'go.*'