Skip to content

Commit 63052c1

Browse files
committed
Run on all files
1 parent 21e792a commit 63052c1

File tree

1 file changed

+36
-46
lines changed

1 file changed

+36
-46
lines changed

.pre-commit-config.yaml

Lines changed: 36 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -1,54 +1,44 @@
11
# See https://pre-commit.com for more information
22
# See https://pre-commit.com/hooks.html for more hooks
33
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
2727

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
3632

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
4237

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
5242

5343
ci:
54-
skip: [golang-diff, golangci-lint]
44+
skip: [golangci-lint-full]

0 commit comments

Comments
 (0)