Skip to content

Commit 7e055af

Browse files
committed
chore: tidy up the pre-commit config
1 parent a1885b7 commit 7e055af

File tree

1 file changed

+76
-45
lines changed

1 file changed

+76
-45
lines changed

.pre-commit-config.yaml

Lines changed: 76 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,26 @@
1+
---
12
repos:
2-
- repo: https://github.com/pre-commit/pre-commit-hooks
3-
rev: v5.0.0
4-
hooks:
5-
- id: check-added-large-files
6-
args: ["--maxkb=800"]
3+
- hooks:
4+
- args: ["--maxkb=800"]
5+
id: check-added-large-files
76
- id: check-ast
87
- id: check-executables-have-shebangs
98
- id: check-json
109
- id: check-shebang-scripts-are-executable
11-
- id: check-yaml
12-
args:
13-
- --allow-multiple-documents
14-
- id: detect-private-key
15-
exclude: |
10+
- args:
11+
- "--allow-multiple-documents"
12+
id: check-yaml
13+
- exclude: |
1614
(?x)^(
1715
)$
18-
- id: detect-aws-credentials
19-
args:
20-
- --allow-missing-credentials
21-
- id: end-of-file-fixer
22-
exclude: |
16+
id: detect-private-key
17+
- args:
18+
- "--allow-missing-credentials"
19+
id: detect-aws-credentials
20+
- exclude: |
2321
(?x)^(
2422
)$
25-
- id: name-tests-test
26-
- id: file-contents-sorter
27-
- id: requirements-txt-fixer
28-
- id: sort-simple-yaml
29-
- id: trailing-whitespace
30-
- id: fix-byte-order-marker
31-
- id: check-builtin-literals
32-
- id: check-case-conflict
23+
id: end-of-file-fixer
3324
- id: check-builtin-literals
3425
- id: check-byte-order-marker
3526
- id: check-case-conflict
@@ -41,33 +32,73 @@ repos:
4132
- id: check-xml
4233
- id: debug-statements
4334
- id: destroyed-symlinks
35+
- id: file-contents-sorter
4436
- id: fix-byte-order-marker
4537
- id: fix-encoding-pragma
4638
- id: forbid-new-submodules
4739
- id: forbid-submodules
4840
- id: mixed-line-ending
49-
- id: pretty-format-json
50-
args:
51-
- --autofix
52-
- repo: https://github.com/alessandrojcm/commitlint-pre-commit-hook
53-
rev: v9.21.0
54-
hooks:
55-
- id: commitlint
56-
stages: [commit-msg]
57-
additional_dependencies: ["@commitlint/config-conventional"]
58-
- repo: https://github.com/astral-sh/ruff-pre-commit
59-
rev: v0.9.7
60-
hooks:
61-
- id: ruff
62-
args:
63-
- --fix
64-
- --select=I
41+
- id: name-tests-test
42+
- id: requirements-txt-fixer
43+
- id: sort-simple-yaml
44+
- id: trailing-whitespace
45+
- args:
46+
- "--autofix"
47+
id: pretty-format-json
48+
repo: https://github.com/pre-commit/pre-commit-hooks
49+
rev: v5.0.0
50+
- hooks:
51+
- args:
52+
- "--fix"
53+
- "--select=I"
54+
id: ruff
6555
- id: ruff-format
66-
- repo: https://github.com/rhysd/actionlint
67-
rev: v1.7.7
68-
hooks:
56+
repo: https://github.com/astral-sh/ruff-pre-commit
57+
rev: v0.9.7
58+
- hooks:
6959
- id: actionlint
70-
- repo: https://github.com/gruntwork-io/pre-commit
71-
rev: v0.1.24
72-
hooks:
60+
repo: https://github.com/rhysd/actionlint
61+
rev: v1.7.7
62+
- hooks:
7363
- id: shellcheck
64+
repo: https://github.com/gruntwork-io/pre-commit
65+
rev: v0.1.26
66+
- hooks:
67+
- args: ["--maxkb=800"]
68+
id: check-added-large-files
69+
- id: check-ast
70+
- id: check-executables-have-shebangs
71+
- id: check-json
72+
- id: check-shebang-scripts-are-executable
73+
- args:
74+
- "--allow-multiple-documents"
75+
id: check-yaml
76+
- exclude: |
77+
(?x)^(
78+
)$
79+
id: detect-private-key
80+
- args:
81+
- "--allow-missing-credentials"
82+
id: detect-aws-credentials
83+
repo: https://github.com/pre-commit/pre-commit-hooks
84+
rev: v5.0.0
85+
- hooks:
86+
- additional_dependencies: ["@commitlint/config-conventional"]
87+
id: commitlint
88+
stages: [commit-msg]
89+
repo: https://github.com/alessandrojcm/commitlint-pre-commit-hook
90+
rev: v9.21.0
91+
- hooks:
92+
- id: go-fmt
93+
- id: go-vet
94+
# - id: go-lint
95+
- id: go-imports
96+
- args: [-over=15]
97+
id: go-cyclo
98+
- id: validate-toml
99+
- id: no-go-testing
100+
- id: go-unit-tests
101+
- id: go-build
102+
- id: go-mod-tidy
103+
repo: https://github.com/dnephin/pre-commit-golang
104+
rev: v0.5.1

0 commit comments

Comments
 (0)