|
1 | 1 | # See https://pre-commit.com for more information |
2 | 2 | # See https://pre-commit.com/hooks.html for more hooks |
3 | 3 | repos: |
4 | | -- repo: https://github.com/pre-commit/pre-commit-hooks |
5 | | - rev: v4.5.0 |
6 | | - hooks: |
7 | | - - id: trailing-whitespace |
8 | | - - id: end-of-file-fixer |
9 | | - - id: check-yaml |
10 | | - args: [--allow-multiple-documents] |
11 | | - - id: check-ast |
12 | | - - id: check-added-large-files |
13 | | - - id: check-merge-conflict |
14 | | - - id: check-shebang-scripts-are-executable |
15 | | - - id: check-executables-have-shebangs |
16 | | - - id: check-symlinks |
17 | | - - id: check-case-conflict |
18 | | - - id: check-vcs-permalinks |
19 | | - - id: check-json |
20 | | - - id: pretty-format-json |
21 | | - args: [--autofix, --no-ensure-ascii] |
22 | | - - id: mixed-line-ending |
23 | | - args: [--fix=lf] |
24 | | - - id: no-commit-to-branch |
25 | | - - id: requirements-txt-fixer |
26 | | - - id: fix-byte-order-marker |
| 4 | + - repo: https://github.com/pre-commit/pre-commit-hooks |
| 5 | + rev: v4.5.0 |
| 6 | + hooks: |
| 7 | + - id: trailing-whitespace |
| 8 | + - id: end-of-file-fixer |
| 9 | + - id: check-yaml |
| 10 | + args: [--allow-multiple-documents] |
| 11 | + - id: check-ast |
| 12 | + - id: check-added-large-files |
| 13 | + - id: check-merge-conflict |
| 14 | + - id: check-shebang-scripts-are-executable |
| 15 | + - id: check-executables-have-shebangs |
| 16 | + - id: check-symlinks |
| 17 | + - id: check-case-conflict |
| 18 | + - id: check-vcs-permalinks |
| 19 | + - id: check-json |
| 20 | + - id: pretty-format-json |
| 21 | + args: [--autofix, --no-ensure-ascii] |
| 22 | + - id: mixed-line-ending |
| 23 | + args: [--fix=lf] |
| 24 | + - id: no-commit-to-branch |
| 25 | + - id: requirements-txt-fixer |
| 26 | + - id: fix-byte-order-marker |
27 | 27 |
|
28 | | -- repo: local |
29 | | - hooks: |
30 | | - - id: golang-diff |
31 | | - name: create-go-diff |
32 | | - entry: bash -c 'git diff -p origin/main > /tmp/diff.patch' |
33 | | - language: system |
34 | | - types: [go] |
35 | | - pass_filenames: false |
| 28 | + - repo: https://github.com/golangci/golangci-lint |
| 29 | + rev: v1.55.2 |
| 30 | + hooks: |
| 31 | + - id: golangci-lint-full |
36 | 32 |
|
37 | | -- repo: https://github.com/golangci/golangci-lint |
38 | | - rev: v1.55.2 |
39 | | - hooks: |
40 | | - - id: golangci-lint |
41 | | - args: [--new-from-patch=/tmp/diff.patch] |
| 33 | + - repo: https://github.com/gitleaks/gitleaks |
| 34 | + rev: v8.18.1 |
| 35 | + hooks: |
| 36 | + - id: gitleaks |
42 | 37 |
|
43 | | -- repo: https://github.com/gitleaks/gitleaks |
44 | | - rev: v8.18.1 |
45 | | - hooks: |
46 | | - - id: gitleaks |
47 | | - |
48 | | -- repo: https://github.com/DavidAnson/markdownlint-cli2 |
49 | | - rev: v0.12.1 |
50 | | - hooks: |
51 | | - - id: markdownlint-cli2 |
| 38 | + - repo: https://github.com/DavidAnson/markdownlint-cli2 |
| 39 | + rev: v0.12.1 |
| 40 | + hooks: |
| 41 | + - id: markdownlint-cli2 |
52 | 42 |
|
53 | 43 | ci: |
54 | | - skip: [golang-diff, golangci-lint] |
| 44 | + skip: [golangci-lint-full] |
0 commit comments