-
-
Notifications
You must be signed in to change notification settings - Fork 21
Expand file tree
/
Copy pathprek.toml
More file actions
71 lines (59 loc) · 1.82 KB
/
Copy pathprek.toml
File metadata and controls
71 lines (59 loc) · 1.82 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
# EndBASIC
# Copyright 2026 Julio Merino
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.
[[repos]]
repo = "https://github.com/pre-commit/pre-commit-hooks"
rev = "v6.0.0"
[[repos.hooks]]
id = "check-case-conflict"
[[repos.hooks]]
id = "check-executables-have-shebangs"
[[repos.hooks]]
id = "check-merge-conflict"
[[repos.hooks]]
id = "check-shebang-scripts-are-executable"
exclude = "^cli/tests/cli/(propline|shebang)-.*\\.bas$"
[[repos.hooks]]
id = "detect-private-key"
[[repos.hooks]]
id = "end-of-file-fixer"
exclude = "^cli/tests/.*\\.out$"
[[repos.hooks]]
id = "trailing-whitespace"
exclude = "^(cli/tests/.*\\.out|core/tests/.*\\.md)$"
[[repos]]
repo = "local"
[[repos.hooks]]
id = "do-not-submit"
name = "Check for [D]O NOT SUBMIT markers"
language = "system"
entry = "sh"
args = ["-c", '! grep -rn "[D]O NOT SUBMIT" --exclude-dir=.git --exclude-dir=target .']
pass_filenames = false
always_run = true
[[repos.hooks]]
id = "check-versions"
name = "Check version consistency"
language = "script"
entry = "admin/check-versions.sh"
pass_filenames = false
always_run = true
[[repos.hooks]]
id = "cargo-rust"
name = "Check Rust code (clippy + fmt)"
language = "script"
entry = "admin/check-rust.sh"
pass_filenames = false
always_run = true