-
-
Notifications
You must be signed in to change notification settings - Fork 136
/
.pre-commit-config.yaml
55 lines (52 loc) · 1.48 KB
/
.pre-commit-config.yaml
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
ci:
skip: []
exclude: '^.*\.(patch)$'
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
- id: check-added-large-files
- id: mixed-line-ending
args: ["--fix=lf"]
- repo: https://github.com/shellcheck-py/shellcheck-py
rev: v0.10.0.1
hooks:
- id: shellcheck
types: []
files: '^.*\.(pacscript|sh)$'
- repo: https://github.com/maxwinterstein/shfmt-py
rev: v3.7.0.1
hooks:
- id: shfmt
args: ["-i", "2", "-bn", "-ci", "-sr", "-s", "-w"]
types: []
exclude: |
(?x)^(
packages/emacs/emacs.pacscript|
packages/emacs-git/emacs-git.pacscript|
)$
files: '^.*\.(pacscript|sh)$'
- repo: local
hooks:
- id: update-srcinfo
name: update .SRCINFO data
language: system
entry: ./scripts/srcinfo.sh write
files: '^.*\.pacscript$'
- id: check-srcinfo
name: check for .SRCINFO
language: system
entry: ./scripts/srcinfo.sh check
files: '^.*\.pacscript$'
- id: update-pkglist
name: update packagelist
language: system
entry: env LC_ALL=C ./scripts/srcinfo.sh build packagelist
- id: update-srclist
name: update srclist
language: system
entry: env LC_ALL=C ./scripts/srcinfo.sh build srclist
# vim:set ft=yaml ts=2 sw=2 et: