-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathprek.toml
More file actions
87 lines (67 loc) · 1.77 KB
/
Copy pathprek.toml
File metadata and controls
87 lines (67 loc) · 1.77 KB
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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
# Copyright (C) 2026 Snuffy2
# SPDX-License-Identifier: AGPL-3.0-only
# Configuration file for `prek`, a git hook framework written in Rust.
#:schema https://www.schemastore.org/prek.json
[[repos]]
repo = "https://github.com/pre-commit/pre-commit-hooks"
rev = "v6.0.0"
[[repos.hooks]]
id = "trailing-whitespace"
[[repos.hooks]]
id = "end-of-file-fixer"
[[repos.hooks]]
id = "check-yaml"
[[repos.hooks]]
id = "check-json"
[[repos.hooks]]
id = "check-toml"
[[repos.hooks]]
id = "check-merge-conflict"
[[repos.hooks]]
id = "check-added-large-files"
[[repos]]
repo = "https://github.com/rhysd/actionlint"
rev = "v1.7.12"
[[repos.hooks]]
id = "actionlint"
additional_dependencies = [
"github.com/wasilibs/go-shellcheck/cmd/shellcheck@v0.11.1",
]
[[repos]]
repo = "local"
[[repos.hooks]]
id = "gofmt"
name = "gofmt"
entry = "gofmt -w"
language = "system"
types = ["go"]
# The "eslint" and "testonly" hooks below shell out to `npm`, so Node.js and
# npm must be available on the host. CI installs them via actions/setup-node
# in .github/workflows/linters.yml; local contributors need them installed
# manually.
[[repos.hooks]]
id = "npm-lockfile"
name = "update package-lock.json"
entry = "npm install --package-lock-only --ignore-scripts"
language = "system"
files = "^(package.json|package-lock.json)$"
pass_filenames = false
[[repos.hooks]]
id = "eslint"
name = "eslint"
entry = "npm run lint:fix"
language = "system"
pass_filenames = false
[[repos.hooks]]
id = "testonly"
name = "npm test"
entry = "npm test"
language = "system"
pass_filenames = false
[[repos]]
repo = "https://github.com/tekwizely/pre-commit-golang"
rev = "v1.0.0-rc.4"
[[repos.hooks]]
id = "go-vet-mod" # Examines code and reports suspicious constructs
[[repos.hooks]]
id = "go-mod-tidy" # Ensures go.mod matches source code